# Conditional Informations in popup window

**URL:** <https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [December 10, 2022, 8:45pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465 "2022-12-10T20:45:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louis\_Hebert](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Louis\_Hebert](https://forum.inductiveautomation.com/u/Louis_Hebert)\
**Post date:** [December 10, 2022, 8:45pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/1 "2022-12-10T20:45:58Z")

</div>

Hi,  
I'm creating an interface to keep track of the states of many components of machines. I have template which will show the recap for each components, with it, I got a UDT with every parameters included in It so I only have to link one variable when adding a recap block. Now I'm trying to create a popup window that shows every parameters for the component. (the popup window opens when you click on the recap block of a component. My trouble is changing the informations shown up in the window depending on which block I click on. (not wanting to create a unique popup window for each component. At least, I use the same UDT for each and everyone. I'm thinking using dynamic tag binding (or indirect tag binding) but I'm not sure where to get which UDT block was clicked.

Would creating a temp tag could work? so when I click on a block I set to temp tag to the name of the UDT I want at the same time as opening the popup window. And in the popup window the parameters display use indirect tag binding like such: [edge]clicked\_UDT/Par\_id clicked\_UDT being the temp tag

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 11, 2022, 9:08am UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/2 "2022-12-11T09:08:39Z")

</div>

Pass the UDT instance path as a parameter and use this in the popup:

[https://docs.inductiveautomation.com/display/DOC80/Popup+Windows#PopupWindows-ParameterizedPopupWindows](https://docs.inductiveautomation.com/display/DOC80/Popup+Windows#PopupWindows-ParameterizedPopupWindows)

[https://docs.inductiveautomation.com/display/DOC80/Parameterized+Popup+Windows](https://docs.inductiveautomation.com/display/DOC80/Parameterized+Popup+Windows)

---

<div class="post-metadata">

**Author:** ![A\_Power](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@A\_Power](https://forum.inductiveautomation.com/u/A_Power)\
**Post date:** [December 11, 2022, 10:07pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/3 "2022-12-11T22:07:00Z")

</div>

Found somewhere on here that it is not recommended to have a Custom Property of Type UDT (bad performance).  
As a result when I make a popup, or any page that requires duplication and that needs to be dynamic like this I do as mentioned above and pass a parameter in like a number to a Custom property that lives on that page (i.e Machine Num= Integer)

If I had a popup that showed 12 different tags about a machine, and I had 3 machines that might be called then I will setup all of the tag bindings on all of the components to be either indirect addressed or an expression and the dynamic number will be written into it there (it's a page property).

So if machine 4 comes along and gets installed, all I need to do is pass a 4 to my popup and all my tags work.

---

<div class="post-metadata">

**Author:** ![Louis\_Hebert](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Louis\_Hebert](https://forum.inductiveautomation.com/u/Louis_Hebert)\
**Post date:** [December 12, 2022, 12:46pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/4 "2022-12-12T12:46:36Z")

</div>

leading me to another question, am I the only one not able to access a window parameters from another window?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 12, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/5 "2022-12-12T12:49:17Z")

</div>

I don't use vision so I'm not sure what's up.  
But I wouldn't expect one window's parameters to be accessible from another one. Nor would I want them to be.

---

<div class="post-metadata">

**Author:** ![Louis\_Hebert](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Louis\_Hebert](https://forum.inductiveautomation.com/u/Louis_Hebert)\
**Post date:** [December 12, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/6 "2022-12-12T12:49:48Z")

</div>

good, thanks

---

<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:** [December 12, 2022, 1:08pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/7 "2022-12-12T13:08:55Z")

</div>

In Vision, a script can look up window objects by name, and if open (non-null return), can traverse the hierarchy to access and/or write to targeted properties. But only in scripting, and only when the window is open. You cannot _ **bind** _ to other windows' properties.

---

<div class="post-metadata">

**Author:** ![Louis\_Hebert](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@Louis\_Hebert](https://forum.inductiveautomation.com/u/Louis_Hebert)\
**Post date:** [December 12, 2022, 1:23pm UTC](https://forum.inductiveautomation.com/t/conditional-informations-in-popup-window/67465/8 "2022-12-12T13:23:06Z")

</div>

thank you, that's pretty usefull to know
