# Calling getComponent('title') or insert a variable?

**URL:** <https://forum.inductiveautomation.com/t/calling-getcomponent-title-or-insert-a-variable/66512>\
**Category:** Ignition\
**Created:** [November 15, 2022, 9:01am UTC](https://forum.inductiveautomation.com/t/calling-getcomponent-title-or-insert-a-variable/66512 "2022-11-15T09:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 15, 2022, 9:01am UTC](https://forum.inductiveautomation.com/t/calling-getcomponent-title-or-insert-a-variable/66512/1 "2022-11-15T09:01:17Z")

</div>

Hi

Is it possible when calling getComponent() to insert a variable instead of hard coded name ? for example  
if I wanted to go to a specific template instance within my root container ?. I know you can loop through a template repeater and get the template instance you require. just wondering if you just had a list of templates instances of a UDT and wanted to access a specfic instance via scripting.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 15, 2022, 11:27am UTC](https://forum.inductiveautomation.com/t/calling-getcomponent-title-or-insert-a-variable/66512/2 "2022-11-15T11:27:58Z")

</div>

You should probably add the _Vision_ tag to your question to attract the experts in that area.

---

<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:** [November 15, 2022, 12:54pm UTC](https://forum.inductiveautomation.com/t/calling-getcomponent-title-or-insert-a-variable/66512/3 "2022-11-15T12:54:12Z")

</div>

Of course. It is just a python string. It doesn't have to be a constant.
