# NoneType object has no attribute 'parent'

**URL:** <https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280>\
**Category:** Ignition\
**Created:** [June 20, 2023, 3:06pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280 "2023-06-20T15:06:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christy\_Jean](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Christy\_Jean](https://forum.inductiveautomation.com/u/Christy_Jean)\
**Post date:** [June 20, 2023, 3:06pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/1 "2023-06-20T15:06:10Z")

</div>

What's the right way to access "TextField" from a binding in root?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2be2acb4da684116406dd4254b390271625bf80b.png)

---

<div class="post-metadata">

**Author:** ![Tom\_Chapman](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@Tom\_Chapman](https://forum.inductiveautomation.com/u/Tom_Chapman)\
**Post date:** [June 20, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/2 "2023-06-20T15:13:28Z")

</div>

self.getSibling I think if I've understood you correctly ?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 20, 2023, 3:15pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/3 "2023-06-20T15:15:59Z")

</div>

Is it not coming through correctly from the property selector? That is the easiest least error prone way to get the path's to the properties on components.

---

<div class="post-metadata">

**Author:** ![Christy\_Jean](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Christy\_Jean](https://forum.inductiveautomation.com/u/Christy_Jean)\
**Post date:** [June 20, 2023, 3:41pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/4 "2023-06-20T15:41:50Z")

</div>

I've updated my question...I've trying to access TextField from the root of the view

---

<div class="post-metadata">

**Author:** ![Tom\_Chapman](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@Tom\_Chapman](https://forum.inductiveautomation.com/u/Tom_Chapman)\
**Post date:** [June 20, 2023, 4:12pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/5 "2023-06-20T16:12:01Z")

</div>

In that case the path in the "configure property binding" is correct and will return the text inside the Text Field  
if you want it within the script area. it would be self.getChild("Header").getChild("Create Waffle Pack Tag").getChild("TextField").props.text

as bkarabinchak.psi says though your best bet is using the property selector  
 ![highlight](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/ad1c3ca97689b453273fa39effcfdfe67e813421.png)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 20, 2023, 4:31pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/6 "2023-06-20T16:31:39Z")

</div>

Just a word of caution that you should avoid running a browse operation in a script transform like this. Your performance will have a very good chance of tanking.

This operation should be handed off to another thread, using `system.tag.invokeAsynchronous()` or run in a gateway message handler using `system.util.sendMessage()`

---

<div class="post-metadata">

**Author:** ![Christy\_Jean](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Christy\_Jean](https://forum.inductiveautomation.com/u/Christy_Jean)\
**Post date:** [June 20, 2023, 4:42pm UTC](https://forum.inductiveautomation.com/t/nonetype-object-has-no-attribute-parent/75280/7 "2023-06-20T16:42:30Z")

</div>

> [@Tom\_Chapman](#):
>
> self.getChild("Header").getChild("Create Waffle Pack Tag").getChild("TextField").props.text

that works, thank you!
