Running a server action without user input every "x" seconds

Running a server action without user input every "x" seconds

  

Hello,

I'm developing a web application, and i'm having an issue.

I need a "Web Screen" to "Run a Server Action" every, let's say, 3 seconds without needing any user input (like clicking a button).

How can i accomplish that?


Thanks :)

Solution

You're going to need some javascript.

See this Fiddle to have an idea:

https://jsfiddle.net/joaomelont/u3n2Lp4v/1/

Basically it clicks a button (that can be hidden) every 3 seconds, with the javascript setInterval() method.

Solution

Well... I kinda saw the hidden button bodge coming. The platform should provide a clean way to do what i want.


Anyway, thank you very much João for fiddle. I hope you have a nice weekend.