2830
Views
8
Comments
Solved
How to auto refresh dashboard/ lists in reactive
Question

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


2019-11-11 17-10-24
Manish Jawla
 
MVP
Solution

Hi Sofia,

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

Hope this helps.

Regards,

Manish Jawla

RefreshScreen.oml
2021-08-12 11-00-27
Nordin Ahdi
 
MVP

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

2019-11-11 17-10-24
Manish Jawla
 
MVP

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 

2019-04-06 13-31-38
Sofia Souto

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

2019-11-11 17-10-24
Manish Jawla
 
MVP
2019-11-11 17-10-24
Manish Jawla
 
MVP

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>"
2019-11-11 17-10-24
Manish Jawla
 
MVP
Solution

Hi Sofia,

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

Hope this helps.

Regards,

Manish Jawla

RefreshScreen.oml
2019-04-06 13-31-38
Sofia Souto

Hello Manish,


Worked perfect :)

Thank you so much for your time


Regards 

Sofia

2019-11-11 17-10-24
Manish Jawla
 
MVP

Glad to help you :).

Regards,

Manish Jawla

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.