Crazy Info-Window PrintFormat on the fly

The migration of Adempiere modules to iDempiere

Crazy Info-Window PrintFormat on the fly

Postby red1 » Fri Oct 18, 2019 5:38 am

As explained in earlier sermons, after you have created an Info-Window, you can inject an Info Report with just a line with parameters. However that has 2 inconveniences.
1. You need a plugin to house the generated code before it can work.
2. You cannot print en masse as it is selective printing.

Thus i not only came out with a further innovation that resolves all of the above, but it is done like magic. Just one word 'PrintFormat' in the Ninja Module Designer. No shutdown of server, no messy plugin management, not even need of pre-existing Report, no nothing.

First take an Info-window that you wish to have a general Report print format to it.

InfowindowExample.png
InfowindowExample.png (40.13 KiB) Viewed 828 times
It only has the usual selective Report. Now logout and login back as System Admin to the Ninja.

PrintFormatInfoWindow.png
PrintFormatInfoWindow.png (22.22 KiB) Viewed 828 times
At the Code Maker, fill in as shown. The Info-Window full name and the keyword PrintFormat at the Process field. Nothing else. Then go to the parent tab and press Generate Module.

PrintFormatGenerate.png
PrintFormatGenerate.png (37.08 KiB) Viewed 828 times
After success, relogin into your client to see the new button. It works independent from the selection but you need to do a mock select to let the button comes on.

ReadyPrintFormat.png
ReadyPrintFormat.png (29.86 KiB) Viewed 827 times
Then you select the parameters similar to the Info-Window.

PrintFormatInfo.png
PrintFormatInfo.png (21.34 KiB) Viewed 827 times
From the generated report you can use the wizard to bring about anything.

InfoPrintWzard.png
InfoPrintWzard.png (45.14 KiB) Viewed 827 times
WizardSummary.png
WizardSummary.png (28.28 KiB) Viewed 827 times
Pressing the Summary key gives you instantly this:

summaryreport.png
summaryreport.png (24.88 KiB) Viewed 826 times
You can change the generic Print Format name in the SystemAdmin ReportProcess window. Then you can play around with the Info-Window criteria columns, deactivate those not needed temporarily, generate a new PrintFormat, and then activate back.

In fact generating the Info-Window together with this Printing can be done both on the fly without any coding nor server restart!
red1
Site Admin
 
Posts: 2760
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Return to iDempiere

Who is online

Users browsing this forum: No registered users and 3 guests

cron