JS calling IW Async event

<< Click to Display Table of Contents >>

Navigation:  Forum >

JS calling IW Async event

Forum link

 

 

 


 

10-04-2023, 09:18 PM:

 

Is there a way where a JS can call an Async event in IW?

 

 

 


 

10-06-2023, 01:21 AM:

 

(10-04-2023, 09:18 PM)mhammady Wrote: [ -> ]Is there a way where a JS can call an Async event in IW?

 

You mean button async click this kind of async event? if yes

 

you can try to use

 

Code:

 

ajaxCall("btnAdd.DoOnAsyncClick");

 

ajaxCall("btnAdd.DoOnAsyncClick", "key=12"); //To pass params to the event, it can be access with EventParams(TStringList)

 

ajaxCall("btnAdd.DoOnAsyncClick", null, true); //third params is to activate async lock (default is undefined > false)

 

in your JS

 

 

 


 

10-06-2023, 01:53 AM:

 

This is exactly what I’m looking for. JS calling Async button click.

 

Thank you so much, I shall try it tomorrow…