Hi there,
Been having a lot of fun playing around with Ignition 8 and the new Perspective module!
I’ve been working on automatically creating all of the navigation based on the current folder structure setup in the project. If I add a new Folder or View, I want that to automatically be created in my NavTree and linked properly in the Page Configuration.
I have it working, but find myself wondering if there are some built in functions that can make it easier and more intuitive.
Currently, I’m using the python os library to determine which files and folders are present on the gateway under the perspective views folder and using that information I’m creating a item dict and writing that to a tag that is linked to via an expression binding on the NavTree.
I am then building a json string and writing it to the page-config json file to link up the navigation.
I have 2 questions:
- Is it possible to, using some undocumented function, get a list of all perspective views (including their path) in the current project? Akin to system.gui.getWindowNames() in Vision?
- Is it possible to programatically alter the Page Configuration without modifying the page-config/config.json stored on the filesystem?
Thanks for your time!