Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

button to start report with launch form

Questions related to nuBuilder Forte Reports and the Report Builder.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: button to start report with launch form

Unread post by toms »

Replace both #TestRunPHP with #certificaat_rpt (this is the id of your run button).
The parameters of nuGetPHP are hexadecimal numbers.

Add under Setup -> Header:

Code: Select all

function nuOnLoad() {
    if (nuFormType() == 'edit' && f.form_id == 'nuuserhome') {  // change form_id if the button is not on nuuserhome
       $("#certificaat_rpt").attr('onclick', '');  // <-- id of your button, disable the default onclick handler
        $("#certificaat_rpt").click(function() { // <-- id of your button, add your own handler
                 nuGetPHP('5a543df52a0b944','5ad57cfdcb21bc8'); // <- replace with your ids. 
        });
 }
}
Parameters for nuGetPHP:
1st parameter: Launch From Id (see table zzzzsys_form, column zzzzsys_form_id) ---> Certificaat rpt
2nd parameter: zzzzsys_php_id (see table zzzzsys_php, column) --> PHP Code certificaatprint
Henk_2a
Posts: 52
Joined: Sun Feb 14, 2016 8:42 pm
Location: Nederland

Re: button to start report with launch form

Unread post by Henk_2a »

Hi Toms
this is all getting very complicated. I don't have many problems with this in the pro-version.
The real and main problem is that the launch-form does not work properly, As soon as this kind of form is working I will resume to try solving this problem.
For now thanks for your time.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: button to start report with launch form

Unread post by admin »

Henk_2a,

Does this help?

https://wiki.nubuilder.cloud/ ... t#nuGetPHP

Steven
Henk_2a
Posts: 52
Joined: Sun Feb 14, 2016 8:42 pm
Location: Nederland

Re: button to start report with launch form

Unread post by Henk_2a »

admin wrote:Henk_2a,

Does this help?

https://wiki.nubuilder.cloud/ ... t#nuGetPHP

Steven
Sorry, still the same .... still skips the form
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: button to start report with launch form

Unread post by admin »

Henk_2a,

nuGetPHP() needs to be run off a Button.

https://forums.nubuilder.cloud/viewtopic.php?f=19&t=9484

Steven
Post Reply