# Vision Popup UDT Script Failure

**URL:** <https://forum.inductiveautomation.com/t/vision-popup-udt-script-failure/65610>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 24, 2022, 5:08pm UTC](https://forum.inductiveautomation.com/t/vision-popup-udt-script-failure/65610 "2022-10-24T17:08:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taylor.Johnson](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@Taylor.Johnson](https://forum.inductiveautomation.com/u/Taylor.Johnson)\
**Post date:** [October 24, 2022, 5:08pm UTC](https://forum.inductiveautomation.com/t/vision-popup-udt-script-failure/65610/1 "2022-10-24T17:08:10Z")

</div>

Hello! I have made a template that uses a tab strip to 'select' different views for the operator. The issue I am having though is that when I try to do a button press, my old "button script" code is failing to pull the motors number to navigate to the correct tag to write to.

I have added the "MotorNumber" data type to the "Home" container - but I believe the issue is that my script is going off inside of the "Home" tab and therefore it doesnt have the MotorNumber.Dynamictagtie passed to it. Should I write scripting on the tag script to pass parameters to these containers to resolve?

I am using the M\_10500 motor as an example, which is a UDT of type PMTR - The tag browser hierarchy is shown in the screenshot.

Screenshot is the python console from the button press, along with the script itself.

 ![remmina_Internal EWS_10.1.1.18_20221024-170422](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/e/fe33fb17af20ea49ee8a4d246610dc78373344f1.png)

```auto
value = 1
system.tag.writeBlocking([str(event.source.parent.MotorNumber.DynamicTagTie) + "/O/OCmd_Start1"], [value])

print str(event.source.parent.MotorNumber.DynamicTagTie) + "/O/OCmd_Start1"

```

---

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [October 24, 2022, 7:04pm UTC](https://forum.inductiveautomation.com/t/vision-popup-udt-script-failure/65610/2 "2022-10-24T19:04:37Z")

</div>

Which container or component is your MotorNumber parameter on? It seems like it may be placed on a couple of components, one of them not being populated with a value (empty string giving you the "None" part of your tag path). If you have a MotorNumber parameter on the Root Container (as you may be passing this into the popup as a parameter) as well as the "Home" grouping of components, you'll want to bind the Home.MotorNumber parameter to the Root Conainer.MotorNumber parameter.

---

<div class="post-metadata">

**Author:** ![Taylor.Johnson](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@Taylor.Johnson](https://forum.inductiveautomation.com/u/Taylor.Johnson)\
**Post date:** [October 24, 2022, 8:58pm UTC](https://forum.inductiveautomation.com/t/vision-popup-udt-script-failure/65610/3 "2022-10-24T20:58:23Z")

</div>

Aha - Thats what I ended up doing - just binding the paramater in the non-root container to the one that is passed through from the template that opens the popup.

Thanks! I was trying to do that in a way harder way by scripting the tab strip, but binding the inner parameter to outer parameter fixed it.
