# Group, Container or Template Repeater?

**URL:** <https://forum.inductiveautomation.com/t/group-container-or-template-repeater/100745>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [January 10, 2025, 6:55pm UTC](https://forum.inductiveautomation.com/t/group-container-or-template-repeater/100745 "2025-01-10T18:55:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [January 14, 2025, 6:13pm UTC](https://forum.inductiveautomation.com/t/group-container-or-template-repeater/100745/5 "2025-01-14T18:13:10Z")

</div>

Well, I'm going to have at least 19 instances, 16 of one template, 3 of another.

I couldn't figure out how to go that deep in the example above, so I built another.

This time: Repeater with a dataset, and each instance is a Template of 3 templates.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e08eba49af5d7609bec71936018982698f47ef33.png)  
Each grouping, including the large button is a template, the internal templates/ **UDTs** are the three "line items".  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7abfb0e66aceae8f4faa720fddeede59a677566.png)

I'm having a hard time wrapping my head around getting to the nested templates/repeaters (in the first post).

```python
repeater = event.source.parent.getComponent('Template Repeater 2')
for template in repeater.loadedTemplates:
	template2 = template.getComponent('Zone_3Pos')
	template2.templateParams['toggle_main'] = 1

```

The _above_ code presents the error: `Nonetype has no attribute: templateParams`, which refers to `template2` variable.

```python
repeater = event.source.parent.getComponent('Template Repeater 2')
for template in repeater.loadedTemplates:
	arguments = []
	for customProp in template.dynamicProps:
		arguments.append(template.getPropertyValue(customProp))
	print(arguments)

```

**EDIT:**  
~~This code prints out 9 values, which appear to be the custom property values of each individual template/ **UDT** and their parent templates. But, I manually counted 10 custom props, instead of 9.~~

_That was wrong... the `customProps` are from the group template, meaning the second nested template._

Print output:

```python
[0, 0, 0, 0
, UDTProperty[type=_types_/Power_Supply_,path=<null>]
, UDTProperty[type=_types_/Power_Supply_,path=<null>]
, UDTProperty[type=_types_/Power_Supply_,path=<null>]
, 7, u'07']

```

Can I assign a value to the parameters from here? If so, how do I target a specific one? Like `template.templateParams['toggle_main'] = 0`?

---

_[View the full topic](https://forum.inductiveautomation.com/t/group-container-or-template-repeater/100745)._
