Best Practice for Mobile screen refresh
Application Type
Mobile, Reactive

What is the best practice in outsystems to call an action in a screen every x time. Will only need to update every minute or so.

An app that needs to call a service to update information displayed on the screen, any suggestions?
Is there a limit or best practice on where this may be counter productive in Outsystems (action being slow) and therefore end up queuing the actions?

Rank: #94

Hello André,

Hope you're doing well.

I'd suggest that you use JavaScript setTimeout() or setInterval() methods.

By the end of your screen action, you can place a JavaScript like this:

}, 60000);

where YourScreenAction is the same screen action that you want to run again.

This will call your action again and again (in a recursive way), each time after 1 minute (60000 milliseconds).

Hope that this helps you!

Kind regards,

Rui Barradas