Get List of all views in a perspective App

Hello All,

Looking for a way to get a list of all views in a perspective application. Furthermore, can I specify a specific location to loop through the views. Like a folder of views within the project? Thanks in advance.

Frank

By conventional methods is not possible I think, I tried with “advanced methods” not success yet. I don’t know if it even possible or secure to do because the only scope who needs to know all available views is the designer.

You can use system.perspective.getProjectInfo()

https://docs.inductiveautomation.com/display/DOC81/system.perspective.getProjectInfo

3 Likes

Ops

Of course you can do that.
Just download HMI framework resource from echange and there is script to show you how to do this. Even you can loop through objects inside view

The perspective code run in server side so you can get result only if run it in perspective scope or gateway