Logic Machine Forum
Linking to touch pages - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Linking to touch pages (/showthread.php?tid=4172)



Linking to touch pages - jamesng - 03.08.2022

Is it possible to directly link to a sub-page of the scada-vis/touch/ UI?

We'd like to create a customer home page for iPhone users just as we do for iPad users.  This can be accessed via a direct link to the plan at <ip-address>/scada-vis/#PlanID and then from this page link to to various system generated touch pages.

Is there a direct link or JS way to link to these touch ID pages directly?

Kind Regards
James


RE: Linking to touch pages - Daniel - 03.08.2022

App page ID on the end like this /scada-vis/touch#9


RE: Linking to touch pages - jamesng - 03.08.2022

Hi Daniel

That's working well - many thanks.

Kind of a long shot, but is there any way to redirect the Smartphone Visualization button on the start page at <IPAddress>//home/ to load a specific plan like /scada-vis/#38 instead of the default /scada-vis/touch page.

Kind Regards
James


RE: Linking to touch pages - jamesng - 05.08.2022

I spoke too soon - we've encountered an issue with linking to touch plans from a from scada-vis plans.

On our iPhones we add the URL <ip-address>/scada-vis/#PlanID to the home screen of our device using iOS native 'Add to Home Screen' share action.

When accessing the LogicMachine web app via this link, any external links exits full screen mode and opens in a new tab (with a done button, page URL etc at the top of the iPhone screen and the next and previous arrows at the bottom of the screen which completely destroys the cohesive UI we were trying to create.

Is there a JS workaround to open to force the 'external' links to /scada-vis/touch#9 to open internally in the web app.

I though the following might be a solution, but haven't been able to get this to work when added as a LogicMachine JS

https://gist.github.com/irae/1042167

Any further advice would be much appreciated.

Kind Regards
James