533
Views
2
Comments
Solved
Is there a way to use a Screen Action in another action?
Question

I have a web block with events on it.  The event handler calls some logic that does list processing with a bunch of settings.  I have a checkbox that has to call the event handler too but has some other preliminary logic.  

I can easily copy the logic of the event handler into the logic required by the checkbox, but I am trying to avoid this apart from moving the logic to a Server Action, is there any way to call another screen action while in the current on?

2020-03-24 00-01-07
Nuno Gonçalo Pereira
Solution

you can use this Widget_Click() function associated to an unvisible button or link, that will run a function associated to this button/link:

OR

use recursively a Server Action inside the same action, like this example:

Thanks and Best Regards,

Nuno Pereira

2019-07-23 15-47-30
Ian Johnstone

Awesome.  Thanks :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.