Logic Machine Forum
Force visu update - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Force visu update (/showthread.php?tid=2350)



Force visu update - permar - 15.11.2019

Hi!

I have a public mounted iPad with a LM vizu in a browser app on a project. When I make changes in the vizu I have to "hard" close the app and open it again for the change to take action. Are there any script or workaround to force the vizu to update?

BR

P


RE: Force visu update - Daniel - 15.11.2019

In the User access settings there is parameter 'User cookie expiration days:' but still the minimum value is 1day.


RE: Force visu update - permar - 15.11.2019

OK! No way to do this on event?


RE: Force visu update - Erwin van der Zwart - 15.11.2019

Hi,

Yes that is possible, add this to your custom JS (you have to refresh browser once to make it active)
Code:
$(function(){
if (typeof grp != 'undefined') {
   grp.listen('1/1/1', function(object, state) {
     var value = object.value;
     if (state == 'value') {
       if (value == true) {
         location.reload(true);
       }
     }
   });
  }
});
BR,

Erwin


RE: Force visu update - Thomas - 27.11.2019

(15.11.2019, 08:59)permar Wrote: Hi!

I have a public mounted iPad with a LM vizu in a browser app on a project. When I make changes in the vizu I have to "hard" close the app and open it again for the change to take action. Are there any script or workaround to force the vizu to update?

BR

P

Hi
Can I ask you how did you solve the "battery issue"? I mean did you leave the battery in the iPad?