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
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
nuPrintPDF() after save [SOLVED]
-
- Posts: 6
- Joined: Wed Aug 26, 2015 5:46 am
nuPrintPDF() after save [SOLVED]
Last edited by greguu on Thu Aug 27, 2015 4:08 am, edited 1 time in total.
-
- Posts: 6
- Joined: Wed Aug 26, 2015 5:46 am
Re: nuPrintPDF() after save
I achieved it by adding
to the bottom of function nuSaveForm() in nucommon.js
This is not ideal but seems to work.
Code: Select all
if(typeof nuOnSave == 'function') {
nuPrintPDF('Label');
}
This is not ideal but seems to work.