5350
Views
5
Comments
Is there any delay action/function in Outsystems

We have client action in which we have a flow which needs to be executed after a certain period of time. Is there any wait/sleep/delay action or function ?


We know this can be achieved by JavaScript/jQuery. However in this scenario we are adding rows into table using jQuery which loads during preparation. So we do not want to use jQuery/JavaScript


2021-04-09 11-42-43
assif_tiger
 
MVP

shanthi kallareddy wrote:

We have client action in which we have a flow which needs to be executed after a certain period of time. Is there any wait/sleep/delay action or function ?


We know this can be achieved by jQuery. However in this scenario we are adding rows into table using jQuery which loads during preparation. 


Add a JS delay in Action & try


var delayInMilliseconds = 1000; //1 second

setTimeout(function() {
  //your code to be executed after 1 second
}, delayInMilliseconds);
UserImage.jpg
shanthi kallareddy

assif_tiger wrote:

shanthi kallareddy wrote:

We have client action in which we have a flow which needs to be executed after a certain period of time. Is there any wait/sleep/delay action or function ?


We know this can be achieved by jQuery. However in this scenario we are adding rows into table using jQuery which loads during preparation. 


Add a JS delay in Action & try


var delayInMilliseconds = 1000; //1 second

setTimeout(function() {
  //your code to be executed after 1 second
}, delayInMilliseconds);

Thanks for the reply. However we cannot use jQuery in our current scenario. Is there any alternate way?

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi shanthi kallareddy,

Can you explain what you are doing and why you cannot use JavaScript (or jQuery) to trigger its execution after a certain amount of time? It's the most obvious way of doing lazy-loading for instance.

The typical way of scheduling execution of server-side logic is to use a Timer (in the Processes tab). If you just want to wait (actively) for a certain amount of time, you can use the Sleep forge component.

Hope this helps!

2024-06-24 04-49-49
Princi

Hi Shanthi, 

For delaying the action flow. You can use the Sleep action in your  flow instead of using JavaScript/JQuery. You can set the time (in miliseconds) into that action so it will wait for that certain time of period. 

You have to install this in your application and use it inside the actions. like below image. Here I have set this sleep for 15 seconds in the flow.

I hope it will solve your query. Please let me know if its work for your problem. 

Thanks

Prince

2022-07-11 07-38-06
Askeladd

It works! Thanks.

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