[System]Client/User/CurrentWindow not updating correctly when a new main window is opened

I am trying to use the [System]Client/User/CurrentWindow tag to make sure my tabbed navigation bars stay in sync. However, this tag does not consistently update to the window that is being shown on the screen. I will navigate to a new window and the tag won’t reliably update. It updates occasionally but not all the time and sometimes when opening a new window it will give me the value of the last window that was opened. What am I missing?

Make sure you only navigate using system.nav.swap* and that any tabs controlling navigation or buttons with navigation actions have their navigation mode set to swap.

If you do navigation with anything other than these, the system tag will become out of sync, as you will have multiple 'main' windows open on top of each other, even though you appear to see only one 'main' window.

1 Like

Ok, that would make sense then. I use the openWindow function in some of my scripts.