# Parameter passing to popup

**URL:** <https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [August 13, 2023, 8:40am UTC](https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785 "2023-08-13T08:40:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott2](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@scott2](https://forum.inductiveautomation.com/u/scott2)\
**Post date:** [August 13, 2023, 8:40am UTC](https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785/1 "2023-08-13T08:40:38Z")

</div>

Hi,  
When passing a UDT to a popup via the default method or scripting, there appears to be a slight delay when the popup is opened before the binding completes.  
ie. If I have motor1, motor2 that are passed to popMotor that has a display of:  
`Root Container.Analog::Meta.TagName`  
if motor1 has been opened the motor2, the text display will show motor1 for a short period for showing motor2.  
Is this normal.?

thanks

---

<div class="post-metadata">

**Author:** ![scott2](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@scott2](https://forum.inductiveautomation.com/u/scott2)\
**Post date:** [August 13, 2023, 9:31am UTC](https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785/2 "2023-08-13T09:31:40Z")

</div>

resolved.  
I referred to this thread & changed the binding from UDT to expression based & seems to function the same without the delay

> [@Template using UDT param: Can you access UDT tag metadata?](https://forum.inductiveautomation.com/t/template-using-udt-param-can-you-access-udt-tag-metadata/10179/8):
>
> We’ve just been bitten by this too. A touchscreen we use has a quite slow CPU, opening a motor popup took 1s to show the popup window, and another 7-8 seconds to visualise the tag data. During that time, the CPU was constantly running at 100%. I would have thought that opening a popup would be influenced mostly by network speed (getting the data from the server) or graphical power (rendering the screen itself), but it turns out to be CPU intensive. Changing the popup to accept a tagpath parame…

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 13, 2023, 12:47pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785/3 "2023-08-13T12:47:27Z")

</div>

There are numerous other reasons to never use UDT type Vision Window _parameters_ as well. Lots of topics on this to look through if you have the curiosity

---

<div class="post-metadata">

**Author:** ![scott2](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@scott2](https://forum.inductiveautomation.com/u/scott2)\
**Post date:** [August 18, 2023, 6:00pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-to-popup/77785/4 "2023-08-18T18:00:17Z")

</div>

What are the other reasons? 🤨  
I sort of understand as to why the delay is there, as the window is opened before the binding is completed.  
I am assuming the reason is that all attributes are 'loaded' & therefore increase % on load.?  
Is this the same reason not to use a UDT on a drop target..?
