# Different variable's value for each window instance

**URL:** <https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603>\
**Category:** Ignition\
**Created:** [May 16, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603 "2022-05-16T09:33:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mootez\_bh](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mootez\_bh](https://forum.inductiveautomation.com/u/mootez_bh)\
**Post date:** [May 16, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/1 "2022-05-16T09:33:27Z")

</div>

hello,  
i’m trying to have multiple instance of the same popup window and i want to pass a different value to each one. any help or idea is welcomed and thanks in advance

---

<div class="post-metadata">

**Author:** ![m.pelagatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/m.pelagatti/32/68595_2.png) [@m.pelagatti](https://forum.inductiveautomation.com/u/m.pelagatti)\
**Post date:** [May 16, 2022, 10:00am UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/2 "2022-05-16T10:00:59Z")

</div>

Show this video, will help you…

> **[Navigation Functions - Vision Windows and Scripting](https://inductiveuniversity.com/videos/navigation-functions/8.0)**
>
> Navigation Functions: Learn how to use the system.nav.\* functions to manipulate the windows inside a Vision client. Learn the difference between swapTo and swapWindow. Learn more about Vision Windows and Scripting

---

<div class="post-metadata">

**Author:** ![mootez\_bh](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mootez\_bh](https://forum.inductiveautomation.com/u/mootez_bh)\
**Post date:** [May 16, 2022, 10:03am UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/3 "2022-05-16T10:03:54Z")

</div>

thank you but i’m already able to launch multiple instance of the popup but all of them have the same value and i want to have a specific value for each instance.

---

<div class="post-metadata">

**Author:** ![m.pelagatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/m.pelagatti/32/68595_2.png) [@m.pelagatti](https://forum.inductiveautomation.com/u/m.pelagatti)\
**Post date:** [May 16, 2022, 10:11am UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/4 "2022-05-16T10:11:08Z")

</div>

Show me a screenshot example, i don’t understand your problem 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 16, 2022, 1:08pm UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/5 "2022-05-16T13:08:30Z")

</div>

What parameters are you passing to the popup? (There must be something–that’s the only way to make things different.)

---

<div class="post-metadata">

**Author:** ![mootez\_bh](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mootez\_bh](https://forum.inductiveautomation.com/u/mootez_bh)\
**Post date:** [May 16, 2022, 2:06pm UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/6 "2022-05-16T14:06:05Z")

</div>

i’m running a named query that gives me an id whenever there a tag value change. i tried to store the id in a tag and then bind the component to it but it doesnt work. is there a way to create a variable related to the popup instance ?

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [May 16, 2022, 3:50pm UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/7 "2022-05-16T15:50:18Z")

</div>

Do you need to store the id variable anywhere? Or can you use it directly from entry field on popup?

---

<div class="post-metadata">

**Author:** ![m.pelagatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/m.pelagatti/32/68595_2.png) [@m.pelagatti](https://forum.inductiveautomation.com/u/m.pelagatti)\
**Post date:** [May 16, 2022, 3:50pm UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/8 "2022-05-16T15:50:20Z")

</div>

Have you tried to make Custom Properties inside popup page that is related to instance ?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 16, 2022, 4:52pm UTC](https://forum.inductiveautomation.com/t/different-variables-value-for-each-window-instance/59603/9 "2022-05-16T16:52:29Z")

</div>

> [@mootez\_bh](#):
>
> is there a way to create a variable related to the popup instance ?

Yes. They are called root container custom properties. Those are also the properties that can be filled in uniquely by the script that opens the popup (via parameters). Have you looked at the documentation for [system.nav.openWindowInstance](https://docs.inductiveautomation.com/display/DOC81/system.nav.openWindowInstance)?
