# Get TemplateRepeater object from within repeated template component

**URL:** <https://forum.inductiveautomation.com/t/get-templaterepeater-object-from-within-repeated-template-component/29822>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 10, 2019, 9:28am UTC](https://forum.inductiveautomation.com/t/get-templaterepeater-object-from-within-repeated-template-component/29822 "2019-11-10T09:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 10, 2019, 9:28am UTC](https://forum.inductiveautomation.com/t/get-templaterepeater-object-from-within-repeated-template-component/29822/1 "2019-11-10T09:28:43Z")

</div>

The template that I’m repeating is able to delete its entry from the SQL table that’s providing the Template Repeater dataset, so upon deleting it, I want to also trigger the templateParams dataset to refresh.

I have tried to get the containing Template Repeater component from the Template by using:

```auto
# assuming event.source.parent is the Template root container, go back one level
templateRepeater = event.source.parent.parent

```

However this returns this object:  
`com.inductiveautomation.factorypmi.application.components.TemplateRepeater$VerticalView`

Three questions:

1. what does the $ mean in that object? I presume it means that VerticalView is a child component of the TemplateRepeater?
2. how can I get a reference to the TemplateRepeater object from `...TemplateRepeater$VerticalView`?
3. what is the best way to get a reference to the TemplateRepeater object from the Template? (may be the same answer as (2))

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [November 10, 2019, 7:56pm UTC](https://forum.inductiveautomation.com/t/get-templaterepeater-object-from-within-repeated-template-component/29822/2 "2019-11-10T19:56:40Z")

</div>

You gotta go higher up.

`event.source.parent.parent.parent.parent.parent.PropertyOnTheTemplateRepeater`

Another option is to refresh the template repeater dataset based on a client tag. Then inside the template whenever you need to refresh, update the client tag.
