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.
});
}
}
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