Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Run a procedure on button click
Run a procedure on button click
I created a PHP procedure that uses a Launch Form. How can this procedure be run when clicking on a button in an Edit form? I added a button with a run type but the launch form does not appear when I click on the button.
Re: Run a procedure on button click
Timo,
I need more information.
eg.
-What DOES happen when you click the Button.
-Can you show a screenshot of the Builder Procedure Edit Form.
Steven
I need more information.
eg.
-What DOES happen when you click the Button.
-Can you show a screenshot of the Builder Procedure Edit Form.
Steven
Re: Run a procedure on button click
I added a nuDebug in the PHP, this shows me that the function is called. But the launch form is not shown.
Just saw another topic here: https://forums.nubuilder.cloud/viewtopic.php?f=21&t=9465. This is about the same issue.
There is just a run button on the edit form that calls the procedure. Should be easy to replicate.
Just saw another topic here: https://forums.nubuilder.cloud/viewtopic.php?f=21&t=9465. This is about the same issue.
There is just a run button on the edit form that calls the procedure. Should be easy to replicate.
Re: Run a procedure on button click
Screenshots:
PHP Procedure uses a form "Launch from" with Run (in a new window)
PHP Procedure uses a form "Launch from" with Run (in a new window)
You do not have the required permissions to view the files attached to this post.
Re: Run a procedure on button click
Timo,
It works for me.
What does your Procedure look like?
Steven
It works for me.
What does your Procedure look like?
Steven
You do not have the required permissions to view the files attached to this post.
Re: Run a procedure on button click
For the time being, my procedure outputs just nuDebug('run php procedure');
I see that you tested with nublank. What if you select any other form, will it show up?
I see that you tested with nublank. What if you select any other form, will it show up?
Re: Run a procedure on button click
That's what I've been trying;) If any other form is selected (run from in the PHP procedure), a blank page appears instead of the form.admin wrote:Timo,
Try it!
Steven
The url that is opened looks like this: https://xxxx/nurunphp.php?i=5adee4bab3fdbfd
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Run a procedure on button click
Timo,
It isn't working for me either. You can try this workaround:
https://forums.nubuilder.cloud/viewtopic. ... 465#p16697
But it would be better if it there was a fix of course.
It isn't working for me either. You can try this workaround:
https://forums.nubuilder.cloud/viewtopic. ... 465#p16697
But it would be better if it there was a fix of course.