Using tabs in Vision

Hi everyone,

I have some problems opening pages with tabs.
I have a main window with a button that opens a docked window with some tabs. In the button I have this code

system.nav.openWindow('tab_navigation_company')
system.nav.openWindow('company1')

When the docked window is opened 3 tabs open the diferent companies information. Everything works fine because the tabs are linked with the correct page

image
Tab1 opens Comp1, Tab2 opens Comp2 and Tab3 opens Comp3

I can navigate trough the tab companies with the correct information showed on it but the problem is when I go back to my main window (diferent to the docked window) and then I return to my docked window. The tab active is the last visited and not the first and I need to always start in the same tab (Company1) or if it start on tab3 so shows the information of that tab.

image

You can see in the picture that in tab3 is the Measure1 but it must say Measure3 so tab 3 is opening the data of the Company 1.

As always I really appreciate your help.

Bind the selected tab property of the tab strip to the [System]Client/CurrentWindow tag. That path might be slightly wrong, I'm working from memory.

More complications exist if you're not using typical navigation strategy or multiple desktops.

Well. it works!

Thank you very much for sharing your knowledge! :slightly_smiling_face:

1 Like