Hello all… Ok, first and foremost, I am a complete noob to ignition.
I have a project where I am using multiple tab strips.
These tab strips are not docked and navigation is controlled by script (they actually appear below other docked templates). The tabs open naked popup windows (sans title, close, borders, etc). The tabs work correctly when the Main Window containing the tabs is open, however, when navigating away from this Main Window, the last sub-tab popup window opened does not close. Question: In script, how can I identify the currently opened popup window and close it when the parent window closes.
Here is the current code I have for tab navigation: Note that this is scripting for a single tab (hilighted) and is fired off the propertyChange of the Tab
if event.source.selectedTab == 'North Racks Layout'\ and event.source.visible: system.nav.closeWindow('Main Windows/ASRS/SouthRacks') window = system.nav.openWindow('Main Windows/ASRS/NorthRacks') system.nav.centerWindow(window) else: system.nav.closeWindow('Main Windows/ASRS/NorthRacks') if event.source.selectedTab == 'South Racks Layout'\ and event.source.visible: system.nav.closeWindow('Main Windows/ASRS/NorthRacks') window = system.nav.openWindow('Main Windows/ASRS/SouthRacks') system.nav.centerWindow(window) else: system.nav.closeWindow('Main Windows/ASRS/SouthRacks')
Please feel free to suggest alternative options or best practice, but the main goal is to identify and close the stranded popup window.
I appreciate any assistance provided and thank you for this great resource.