Open Window with a UDT parameter inside another

Good Afternoon.

In Ignition 8.0.14 I have created a window that receive a UDT parameter (“Dispositivo_Deteccion”).
In a script I want to open this window and the UDT parameter that I need to pass is inside another UDT but from “Choose Property” window the “Dispositivo_Deteccion” UDT looks like a FOLDER, then I can’t choose it.

Any help?

Best Regards.


If I understand your issue correctly you will need to change your UDT custom property to the parent UDT type of UDT_Detector_Humo. Then in your script you will be able to drill down into the secondary nested UDT.



Thanks for the reply, but that is not the solution.
There are other “parents” UDTs (“UDT_Modulo”, “UDT_Sirena”, …) that have a “Detection_Device” UDT inside. So, I would must to make several windows, one for each parent UDT.

I think it is an Ignition bug.

I’m not sure if this will be a solution, but you can access that property directly by typing it in your script. That “Choose Property” dialog won’t let you select it directly, since it detects it as a folder, but that doesn’t prevent you from using it in your script.

(The same thing is true if you’re selecting a component v.s. selecting a component property. You can’t select the component itself in the “Choose Property” dialog box, but if you type the component path, you can use that component object in your script.)

The part I’m not sure will work is whether you’ll be successful passing that UDT into the other window. If you type the property path directly, and it doesn’t work because of the object type, you may need to switch your templates to use the UDT Path (as a String parameter) instead of a direct UDT parameter.