Hey Guys,
Can anyone help me sharing a code in order to auto refresh tables (#view_1111 and #view_1100) after 5 minutes?
Thanks a lot!
Hey Guys,
Can anyone help me sharing a code in order to auto refresh tables (#view_1111 and #view_1100) after 5 minutes?
Thanks a lot!
Would you mind to compile the code for me with your suggestion? I dont know how to do it.
Wrap you model.fetch in a timer...
function doSomething() {
alert('This is a 5 minute popup');
}
setInterval(doSomething, 300000);
I know this isn't your code, but a way to do it maybe?
So, on the view load set the timer, and in the doSomethign have your model.fetch() code is my thought.
The result I want is the one I get with this code
$(document).on('knack-cell-update.view_1111', function(event, view, record) {
Knack.views["view_1111"].model.fetch();
});
However, the code above only works when inline edit a cell. I want this kind of refresh of the table in view_1111.
Is this possible?
I mean view_1111
Nice! Just need to fix the " for '. However, will refresh the hole page and I would like to refresh only the table in view_1118
I'd do this with a little java script function linked to when these pages are loaded.. Something like the below.. I haven't tested it..
$(document).on('knack-view-render.view_1111', function(event, view, data) {
var timeoutPeriod = 300000;
setTimeout('location.reload(true);",timeoutPeriod);
});
Here’s the best solution you can imagine!!
See for yourself here: https://forums.knack.com/t/auto-refreshing-tables/9675/4
Have fun,
Norm