Accessing a component's dynamic property (UDT) using strings

I have a dynamic property bound to a table. The data type is one of my UDTs, so let’s call it MyUDT.

I am trying to access the following:


But I need to use a string to access it, and getPropertyValue() and getComponent() do not work. I have tried:

Table.getPropertyValue('MyUDT.SomeValue') (but None is returned)

Table.MyUDT.getPropertyValue('SomeValue') (but the getPropertyValue method isnt’ available and I get the corresponding AttributeError)

Is there a way to do this?


Try the python builtin getattr(), like so:getattr(Table.MyUDT, 'SomeValue')

Worked perfectly. Thank you!