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

**URL:** <https://forum.inductiveautomation.com/t/accessing-a-components-dynamic-property-udt-using-strings/10424>\
**Category:** Ignition\
**Created:** [September 2, 2015, 8:59pm UTC](https://forum.inductiveautomation.com/t/accessing-a-components-dynamic-property-udt-using-strings/10424 "2015-09-02T20:59:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karnick](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@karnick](https://forum.inductiveautomation.com/u/karnick)\
**Post date:** [September 2, 2015, 8:59pm UTC](https://forum.inductiveautomation.com/t/accessing-a-components-dynamic-property-udt-using-strings/10424/1 "2015-09-02T20:59:54Z")

</div>

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:

```auto
Table.MyUDT.SomeValue
```

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?

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:** [September 2, 2015, 10:41pm UTC](https://forum.inductiveautomation.com/t/accessing-a-components-dynamic-property-udt-using-strings/10424/2 "2015-09-02T22:41:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![karnick](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@karnick](https://forum.inductiveautomation.com/u/karnick)\
**Post date:** [September 3, 2015, 2:24pm UTC](https://forum.inductiveautomation.com/t/accessing-a-components-dynamic-property-udt-using-strings/10424/3 "2015-09-03T14:24:34Z")

</div>

Worked perfectly. Thank you!
