Interrupt an active event

Questions, tips and tricks and techniques for scripting in Servoy

Interrupt an active event

Postby dlclark » Mon Mar 21, 2022 3:12 pm

In the NG CLIENT, how do you interrupt an active form process that is running - to either cancel or pause?

The application I am working on has a global variable that gets set when you want to interrupt the running form process; but have not been able to get the process that checks this variable to actually get triggered.


Daryl
dlclark
 
Posts: 38
Joined: Sat Jan 08, 2022 5:39 pm

Re: Interrupt an active event

Postby jcompagner » Mon Mar 21, 2022 4:06 pm

this is not directly possible
because the event thread, that handles the incoming events, that wants to set that global variable is busy handling the form process..
in a single client we don't really have a way for this to do this, because also application.updateUI() will only force a push from server to browser, it will not allow the browser to do stuff on the server.
So the only real way todo this currently is doing the long processing in a headless client through the headless client plugin.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Interrupt an active event

Postby dlclark » Tue Mar 22, 2022 7:26 pm

So, no way to set up and event to trigger the server to interrupt processing. It used to work on the JNLP client.

Daryl
dlclark
 
Posts: 38
Joined: Sat Jan 08, 2022 5:39 pm

Re: Interrupt an active event

Postby jcompagner » Tue Mar 22, 2022 7:49 pm

how would this work for smartclient? what would you then do?
because the smart client has the same problem, the event thread is busy doing stuff..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 11 guests