How to auto refresh dashboard/ lists in reactive

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,

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.

Regards,

Nordin

Hi Sofia,

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.

Regards,

Manish 

Hello,


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?


Sofia

HI Sofia,

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>"
Solution

Hi Sofia,

I have attached the sample app for you which is reactive.

Hope this helps.

Regards,

Manish Jawla

Solution

Hello Manish,


Worked perfect :)

Thank you so much for your time


Regards 

Sofia

Glad to help you :).

Regards,

Manish Jawla