Automation of executing an action

Automation of executing an action

  

Hi

I generate random numbers and show them on the screen. It is working (generated numbers are drawn with ajax refresh). But how do I automaticly fire this action (f.ex. every 10 seconds)?    

Regards, Harry

Hi,

you will have to do something with javascript.

for example, something like this:

setTimeout(function(){
  $('#' + Button.Id + ).click();
}, 2000);

Hi Harry,

do u want the refresh at screen level .i.e. u want the screen to remain open and then it will generate and show random numbers every 10 seconds ?

checkout https://www.outsystems.com/forums/discussion/3055/sleep/

you can use this extension in your action to get it sleep for 10 seconds and then refresh your screen in iterative manner.

Debasis Sahoo wrote:

checkout https://www.outsystems.com/forums/discussion/3055/sleep/

you can use this extension in your action to get it sleep for 10 seconds and then refresh your screen in iterative manner.

er, that would be dangerous, because you will have an infinite loop on the server...

better to have it on clientside so the user can do stuff...



J. wrote:

Debasis Sahoo wrote:

checkout https://www.outsystems.com/forums/discussion/3055/sleep/

you can use this extension in your action to get it sleep for 10 seconds and then refresh your screen in iterative manner.

er, that would be dangerous, because you will have an infinite loop on the server...

better to have it on clientside so the user can do stuff...



yeah J u are correct ! its better to have it at client side if it is just for the sake of Display.