Page 1 of 1

nuPrintPDF() after save [SOLVED]

Posted: Wed Aug 26, 2015 5:51 am
by greguu
Hi,

I have a report that I can run via nuPrintPDF() as a button or under custom code JavaScript in the form.

How can I generate that report automatically "after save"? There seems to be no nuPrintPDF() for PHP.

I guess its trivial but I can'f find it.

Cheers,

Greg

Re: nuPrintPDF() after save

Posted: Thu Aug 27, 2015 3:17 am
by greguu
I achieved it by adding

Code: Select all

                if(typeof nuOnSave   == 'function') { 
			            nuPrintPDF('Label');
                }
to the bottom of function nuSaveForm() in nucommon.js

This is not ideal but seems to work.

Re: nuPrintPDF() after save [SOLVED]

Posted: Thu Sep 03, 2015 1:22 am
by admin
nice!