793
Views
4
Comments
Solved
How to auto refresh a page after a certain time (may be 15/30/60 sec.)
Question
Application Type
Reactive

Hi ,


I have one reactive web page which display data in a datagrid. The requirement is to refresh the page after a certain time and load the latest/refreshed data from the database.

Can anybody help me to identify the solution of the above mentioned problem.


Thanks,

Avijit

 

2021-06-01 05-56-33
Komal Kumbhar

Hey Avijit,

Are you able to solve the problem?


2021-05-18 02-27-17
Manish Gupta
Champion

Hello Avijit 

Hope you are doing well. 

You can do this with a Simple JS -

function myFunction() { setInterval('window.location.reload();', 3000); }

It is only work if you want to refresh the Browser Window in same interval. You can set this JS in a common block with autorun as page loads. Then with interval of set time it will keep working. 


Please feel free to ask in case this JS Fails. 


Else you can use this Component: https://www.outsystems.com/forge/component-overview/8460/autorefresh-reactive 


Many Thanks

2022-12-28 10-43-52
Khani

Hello Manish, Is it also a good idea to use Javascript for chat applications (reactive web)? I am building a Chat application, but when text is sent, the receiver has to manually refresh the page to receive the text. Thanks :)

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