I am new to outsystems, I am facing a problem while implementing autorefresh in (Reactive web) a particular webblock data in a webpage every 15 mins. i have even searched various forge and Javascripts, but they are not working for me.
See the oml as a reference.
and you may see it on action here
https://gracetamayocloud.outsystemscloud.com/test/Testing?_ts=637546276191817533
Hi,
Try this javascript : window.history.pushstate or
history.pushState(state, title [, url])
this may help to refresh browser after few seconds.
Thanks
actually I don't want to refresh the browser. I want o refresh the specific block on a webpage every 15 mins.
I always use window.setTimeout(function, milliseconds); when I need to refresh something every so and so seconds.
you may put the client action that refreshes the data on the function part of the setTimeout
Hi Grace,
i did try this method and called the action instead of function but still its not refreshing automatically after every 5 sec. You can check the image
Can you show what is inside the AutoRefresh and which data needs to be refreshed?
Also, when do you run this javascript?
Yes Grace, I have attached the image.
I apologize, I got confused with setTimeout and setInterval.
It must be setInterval something like this.
setInterval(function () {
$actions.Action1();
}, 1000);
Still now working
Yes thanks grace, its working now.