# Template Parameters in Template Repeater

**URL:** <https://forum.inductiveautomation.com/t/template-parameters-in-template-repeater/20009>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [October 6, 2018, 7:27am UTC](https://forum.inductiveautomation.com/t/template-parameters-in-template-repeater/20009 "2018-10-06T07:27:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwinnch](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@edwinnch](https://forum.inductiveautomation.com/u/edwinnch)\
**Post date:** [October 6, 2018, 7:27am UTC](https://forum.inductiveautomation.com/t/template-parameters-in-template-repeater/20009/1 "2018-10-06T07:27:01Z")

</div>

Hi, I have created a template with 20 template parameters and used template repeater to repeat the template for 20 sensors. I need to configure the parameter for each template according to the sensor information. However, I am unable to access the parameter from the template repeater. and would appreciate anyone helps. I need to use template repeater as i need to make a scrollable pop up window so that the pop up window will not cause my main window to resize.

---

<div class="post-metadata">

**Author:** ![Kevin.Collins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.collins/32/13497_2.png) [@Kevin.Collins](https://forum.inductiveautomation.com/u/Kevin.Collins)\
**Post date:** [October 8, 2018, 2:20am UTC](https://forum.inductiveautomation.com/t/template-parameters-in-template-repeater/20009/2 "2018-10-08T02:20:18Z")

</div>

Well, this won’t be the entire answer to your question, but it might help. Let’s say that you have a template like below:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a44a4783846a8dc1d5e12d9db06af0ebe9dd2396.png)

If you then use a template repeater to put that template on the screen in _Dataset_ repeater mode like below:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4c4dfe0a80bd4014038b155022085ff66a816743.png)

Within the button (that is outside of the template repeater), you can use a script like below to retrieve parameters from the various template instances within the repeater:

```auto
templates = event.source.parent.getComponent('Template Repeater').loadedTemplates

for template in templates:
	print '%s %s' % (template.getPropertyValue('ParamA'), template.getPropertyValue('ParamB')) 

```

This will produce:

```nohighlight
Hello World
Hej Världen

```

I bet there is a way to use property change listeners to propagate the value changes up and out of the template repeater to drive the actions that you want but it is a bit too late for me to hack that up right now. Hopefully the above provides some useful insight.

---

<div class="post-metadata">

**Author:** ![edwinnch](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@edwinnch](https://forum.inductiveautomation.com/u/edwinnch)\
**Post date:** [October 8, 2018, 6:47am UTC](https://forum.inductiveautomation.com/t/template-parameters-in-template-repeater/20009/3 "2018-10-08T06:47:47Z")

</div>

Hi Kevin,

Thanks for your help.

I will give it a try if time permit.

Cheers!
