Cash Book printed event  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Cash Book printed event

Postby DannyC » Tue Dec 15, 2015 8:49 am

Hi,

I am trying to locate the Printing or Printed event on a Cash Book receipt form, but it doesn't seem to be there.
I Just need to see who the Jiwa user is who is printing a particular form & cancel if not the correct user.

I must be missing something.

Cheers

Danny
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Cash Book printed event  Topic is solved

Postby Scott.Pearce » Tue Dec 15, 2015 9:18 am

Could you instead use permissions to restrict access to the Print button on the ribbon?

1. Create a new user group called "Not allowed to print Cash Book Receipts".
2. Add users who you want to stop from printing Cash Book Receipts. Save.
3. Open Cash Book Receipts form, choose Utilities->Set Permissions.
4. Choose the "Not allowed to print Cash Book Receipts" group on the "Set Permissions" form.
5. Back on the Cash Book Receipts form, click on the Main tab, then click on the "Print" button to select it.
6. Back on the "Set Permissions" form, check that the "Currently Selected Item" is "ID_RecordPrint", click the "Disallow" button for Read, and click the "Disallow" button for Write. Save.
7. Now when a member of the "Not allowed to print Cash Book Receipts" user group loads the Cash Book Receipts form, they will *not* see a print button.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Cash Book printed event

Postby Mike.Sheen » Sat Feb 27, 2016 5:52 pm

Bumping as was never marked as solved.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Cash Book printed event

Postby Mike.Sheen » Tue Mar 08, 2016 7:19 pm

The events relating to printing is a bit lacking, so I've added bug 12575 to make this a bit easier.

In the meantime, Scott's suggestion works for removing the print ability.

If you only want to limit printing to some of the reports configured, you will need to remove the report from the ReportDefinitionCollection of the cash book receipts form when the form is loaded - that way the user only gets to print certain reports.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Cash Book printed event

Postby DannyC » Wed Mar 09, 2016 2:05 am

Thanks Mike, and Scott.
I've marked Scott's answer as answered. Once the new events have been added, I may revisit this for a more elegant solution but for now am running with Scott's suggestion.
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Cash Book printed event

Postby Mike.Sheen » Wed Mar 09, 2016 11:15 am

Ok, FYI 07.155.00 now has the events you need included.

Attached is an example plugin using these events in the Cash book receipts form - it throws a permission denied exception when the user "Admin" tries to print the "Cash Book Deposit Slip" report from the cash book receipts form.

Plugin Cash Book Receipt - Cancel print of report.xml
Sample Plugin
(29.55 KiB) Downloaded 724 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests