# Using tabs in Vision

**URL:** <https://forum.inductiveautomation.com/t/using-tabs-in-vision/75718>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [June 29, 2023, 3:25pm UTC](https://forum.inductiveautomation.com/t/using-tabs-in-vision/75718 "2023-06-29T15:25:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [June 29, 2023, 3:25pm UTC](https://forum.inductiveautomation.com/t/using-tabs-in-vision/75718/1 "2023-06-29T15:25:57Z")

</div>

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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/adac85fbe4b585df696122cf4bfe1f41ad470113.png)  
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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/04d1413c65261a7f2272165d17865877dda747cf.png)

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.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 29, 2023, 3:47pm UTC](https://forum.inductiveautomation.com/t/using-tabs-in-vision/75718/2 "2023-06-29T15:47:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [June 29, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/using-tabs-in-vision/75718/3 "2023-06-29T17:44:37Z")

</div>

Well. it works!

Thank you very much for sharing your knowledge! 🙂
