Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

nuPrintPDF() after save [SOLVED]

Locked
greguu
Posts: 6
Joined: Wed Aug 26, 2015 5:46 am

nuPrintPDF() after save [SOLVED]

Unread post 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
Last edited by greguu on Thu Aug 27, 2015 4:08 am, edited 1 time in total.
greguu
Posts: 6
Joined: Wed Aug 26, 2015 5:46 am

Re: nuPrintPDF() after save

Unread post 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.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: nuPrintPDF() after save [SOLVED]

Unread post by admin »

nice!
Locked