nuPrintPDF() after save [SOLVED]

nuPrintPDF() after save [SOLVED]

Postby greguu » Wed Aug 26, 2015 1:21 pm

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
Last edited by greguu on Thu Aug 27, 2015 11:38 am, edited 1 time in total.
greguu
 
Posts: 6
Joined: Wed Aug 26, 2015 1:16 pm

Re: nuPrintPDF() after save

Postby greguu » Thu Aug 27, 2015 10:47 am

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.
greguu
 
Posts: 6
Joined: Wed Aug 26, 2015 1:16 pm

Re: nuPrintPDF() after save [SOLVED]

Postby admin » Thu Sep 03, 2015 8:52 am

nice!
admin
Site Admin
 
Posts: 3162
Joined: Mon Jun 15, 2009 9:53 am


Return to Report Writer