Hello, I am working on a project where I want a Label on my header to display the name of the page currently displayed. How do I do this. Thank you!
You can use a client tag to accomplish this. Follow these steps:
- Create a vision client tag with string data type.
- On vision window opened script of all the window, write the heading to the tag.
- Bind the client tag to a label in the header.
If all you want is the current path, and you don't have a multi-monitor system you can use the tag: [System]Client/User/CurrentWindow to get the current window path.
You could then use that path to get the window object using system.gui.getWindow | Ignition User Manual and then grab the pertinent information from the Window in a property change script, and update a label with that information.
2 Likes
Got it thank you!