In other SCADA packages I like to display the title of the current main window in my header bar (which is a separate window). I have been having trouble getting this to work in Ignition. In other packages I would just have an onOpen event on the main window write a value to an internal tag that I could reference. It seems like caching might prevent this approach from working in Ignition.
My first thought was to use the “title” property of the window. However, it appears that is a private property because you can’t bind anything to properties of the window, only to the root container.
So I tried using a client timer script and accessing the name property of the root container of the main window. This still doesn’t work.
windowPath = system.nav.getCurrentWindow()
window = system.gui.getWindow(windowPath)
windowrc = window.getRootContainer()
windowTitle = windowrc.name
Thanks for any ideas.