# Pass parameters with tab strip

**URL:** <https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183>\
**Category:** Ignition\
**Created:** [March 21, 2012, 2:23pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183 "2012-03-21T14:23:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 21, 2012, 2:23pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/1 "2012-03-21T14:23:01Z")

</div>

It would be nice if you could pass a parameter to a window opened with a tab strip selection.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 21, 2012, 4:56pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/2 "2012-03-21T16:56:28Z")

</div>

I like the idea, Doug, but I’m having trouble visualizing a real-world use for it. The lack of coffee may well be the culprit.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 21, 2012, 5:04pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/3 "2012-03-21T17:04:47Z")

</div>

You can do that right now. You just can’t use the built-in “Swap Window” navigation mode. You have to set the mode to “Disabled” and handle the navigation yourself in the propertyChange event handler script. Your script will look something like:`if event.propertyName == "selectedTab":
    value = event.newValue
    if value == "Tab 1":
        system.nav.swapTo("Path/To/Window1", {"param1":"paramValue"})
    elif value == "Tab 2":
        ....`You can also use system.nav.openWindow for popups rather than main windows.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [March 21, 2012, 5:41pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/4 "2012-03-21T17:41:27Z")

</div>

That makes sense to me as a “nice to have” for 7.5.

It goes nicely with my personal #1 usability feature request - being able to browse a target window for Navigation parameter passing. Scripting is nice, but for common tasks, script builders are nicer 🙂

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [March 21, 2012, 6:53pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/5 "2012-03-21T18:53:44Z")

</div>

> [@](#):
>
> You can do that right now. You just can't use the built-in "Swap Window" navigation mode. You have to set the mode to "Disabled" and handle the navigation yourself in the propertyChange event handler script.

I gotcha... a little hacky though.

> [@](#):
>
> I like the idea, Doug, but I'm having trouble visualizing a real-world use for it. The lack of coffee may well be the culprit.

I hear ya.... basically what I was looking to do was some alarm scripting stuff and I wanted to pass an alarm filter parameter to a window based on which tab I clicked on. Then I could use that parameter in a scripting function. I do stuff like that now in my normal navigation but I was hoping there would be a nice option for it in the tab strip customizer.

Does that make sense to you or am I way off track?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 22, 2012, 9:57am UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/6 "2012-03-22T09:57:56Z")

</div>

Ok, I see it now-- had to upgrade to a Monster for it, but I got there! 😆

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 22, 2012, 3:09pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/7 "2012-03-22T15:09:31Z")

</div>

I will add a feature request in for the ability to pass parameters easily on the tab strip.

---

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [June 23, 2012, 2:40pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/8 "2012-06-23T14:40:14Z")

</div>

This would be a plus. Passing dynamic properties from the docked widow to the windows selected by the tabs. Of course you could do this with scripts but something like the event handler navigation menu is better. More easily receptive to a wider audience.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 16, 2019, 3:57pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/9 "2019-10-16T15:57:10Z")

</div>

Okay, before anyone says _anything_ about how old this thread is:  
 ![thread-necromancy](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/ab486520466ff8493c9b72496898a493d60a1f93.png)

Is this feature on the roadmap, or should it be officially added in the ideas forum?

---

<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:** [October 16, 2019, 4:22pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/10 "2019-10-16T16:22:24Z")

</div>

Nope. A year and a half after Travis filed the ticket, it was closed in our internal tracker with the comment “just use manual mode”.

So, feel free to post it on ideas… just don’t count on getting much response 🙂

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 16, 2019, 4:25pm UTC](https://forum.inductiveautomation.com/t/pass-parameters-with-tab-strip/4183/11 "2019-10-16T16:25:09Z")

</div>

Curses! Foiled again! 😄

Thanks, Paul.
