# How to access to property inside template repeater

**URL:** <https://forum.inductiveautomation.com/t/how-to-access-to-property-inside-template-repeater/85393>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 7, 2024, 5:42pm UTC](https://forum.inductiveautomation.com/t/how-to-access-to-property-inside-template-repeater/85393 "2024-02-07T17:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [February 7, 2024, 5:42pm UTC](https://forum.inductiveautomation.com/t/how-to-access-to-property-inside-template-repeater/85393/1 "2024-02-07T17:42:33Z")

</div>

I need to change a parameter inside a template that is inside a template repeater

```auto
templates = system.gui.getParentWindow(event).getRootContainer().getComponent('Template Repeater').getComponents()
for template in templates:
	template.setPropertyValue("status", False)

```

On the first line I get all the templates inside the repeater, but when I try to write the property inside the template I get errors like this:`AttributeError: 'com.inductiveautomation.factorypmi.application.com' object has no attribute 'setPropertyValue' `

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [February 8, 2024, 5:04pm UTC](https://forum.inductiveautomation.com/t/how-to-access-to-property-inside-template-repeater/85393/2 "2024-02-08T17:04:51Z")

</div>

> [@marco\_alvarez](#):
>
> `Repeater').getComponents()`

This is not the correct way to get the templates from a repeater. You need to use the `loadedTemplates` property:

```auto
repeater = event.source.parent.getComponent('Template Repeater')
for template in repeater.loadedTemplates:

```

If the property you are trying to set is a custom property, you will probably need to dig it out of the template's `dynamicProps` field.

Here is an example from another post:  
[Update row in template repeater using button (outside from template) click](https://forum.inductiveautomation.com/t/update-row-in-template-repeater-using-button-outside-from-template-click/71582/8)

---

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [February 12, 2024, 2:26pm UTC](https://forum.inductiveautomation.com/t/how-to-access-to-property-inside-template-repeater/85393/3 "2024-02-12T14:26:25Z")

</div>

Thanks, I just end using:

```auto
templates = system.gui.getParentWindow(event).getRootContainer().getComponent('Template Repeater').getLoadedTemplates()

```
