Hello,
Using reactive, I have a dashboard on my application with
- Indicators with numbers/ cards - (created today, solved today, urgents, ...)
- List of new issues to solve, warnings,...
- Last activity on issues
- ...
We want to show in a monitor to everybody in team see - so no humam interaction
What is the best approach to force refresh every 10 seconds?
Thanks in advance
Sofia
Hi Sofia,
I have attached the sample app for you which is reactive.
Hope this helps.
Regards,
Manish Jawla
Check out this Forge component. It was originally development before Reactive Web was available, but it should also do the trick for Reactive Web Apps.
Let us know if it works.
EDIT: I just had a look, sorry it won't work for Reactive as the web blocks from the Forge component can only be used in Traditional Web Apps.
Nordin
You can have javascript function to refresh the screen data and make time 10sec configurable by using site property so that in future, if u need to change the time from 10 sec to 20sec, you can achieve the same without changing the code.
Manish
Thanks Nordin i already had checked AutoRefreshUtils component and didn't think it would work on reactive.
Thanks Manish, can you show me a example of the javascript function? should call it in a client action?
HI Sofia,
Please check the below post for reference.
https://www.outsystems.com/forums/discussion/45073/how-to-reload-a-screenaction-every-30-seconds-with-javascript/
Manish JAwla
Please add the below script on your page and on preparation call this this javascript method by using runjavascript method. Hope this helps.
SyntaxEditor Code Snippet
"<script> function myFunction() { setInterval(function(){ document.getElementById('"+BtnFeedback.Id+"').click() }, 3000); } </script>"
Hello Manish,
Worked perfect :)
Thank you so much for your time
Regards
Glad to help you :).