Unable to understand Procedures in nuBuilder
Posted: Sun Oct 23, 2022 11:25 am
Not sure if this is the right section, or if it should be General (feel free to move).
I cannot figure out how Procedures work in nuBuilder.
I have tried the following:
So now I am experimenting by just echoing a string.
It always comes back with an uncaught error (as shown in image).
I understand that maybe you cannot echo / print results, but I do not see any procedure to deal display of returned data. It seems unlikely we could use javascript there to update an element directly.
I also tried nuSetFormValue on a Word field that is in the same form, but nothing happened (no error). It seems that is not for this use-case
What am I (and the documentation) missing here?
Thanks.
I cannot figure out how Procedures work in nuBuilder.
I have tried the following:
- a Run object that calls a procedure
- a button (Input) that has an onclick using nuRunPHPHidden('ProcedureName', 1)
So now I am experimenting by just echoing a string.
It always comes back with an uncaught error (as shown in image).
I understand that maybe you cannot echo / print results, but I do not see any procedure to deal display of returned data. It seems unlikely we could use javascript there to update an element directly.
I also tried nuSetFormValue on a Word field that is in the same form, but nothing happened (no error). It seems that is not for this use-case
What am I (and the documentation) missing here?
Thanks.