# Binding template properties to the parent template repeater

**URL:** <https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065>\
**Category:** Ignition\
**Created:** [November 26, 2018, 4:08pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065 "2018-11-26T16:08:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![awaege](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@awaege](https://forum.inductiveautomation.com/u/awaege)\
**Post date:** [November 26, 2018, 4:08pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065/1 "2018-11-26T16:08:29Z")

</div>

I am trying to create a template repeater that repeats x number of template instances. The template being repeated has 4 template properties, three of these will always contain the same value across each instance. The fourth is the one that I want to create instances from. However, I still need the other properties to update as well. Is there a way to bind these template properties to the parent template repeater? I’ve tried using a cell update with the template data but that creates too much manual work and is not dynamic enough.

---

<div class="post-metadata">

**Author:** ![awaege](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@awaege](https://forum.inductiveautomation.com/u/awaege)\
**Post date:** [November 26, 2018, 5:54pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065/2 "2018-11-26T17:54:10Z")

</div>

Appending my original question with this:

Is it possible to call a templates custom method script from it’s parent template repeater?

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [November 26, 2018, 6:12pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065/3 "2018-11-26T18:12:03Z")

</div>

Yes, you can use loadedTemplates to get an array of the templates and call your custom method.

```auto
repeater = event.source.parent.getComponent('Template Repeater')
repeater.loadedTemplates[1].test()

```

---

<div class="post-metadata">

**Author:** ![awaege](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@awaege](https://forum.inductiveautomation.com/u/awaege)\
**Post date:** [November 26, 2018, 7:05pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065/4 "2018-11-26T19:05:16Z")

</div>

This worked. Although I think it should be ‘getLoadedTemplates’

See Scripting Functions:  
[https://docs.inductiveautomation.com/display/DOC79/Template+Repeater](https://docs.inductiveautomation.com/display/DOC79/Template+Repeater)

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [November 26, 2018, 7:16pm UTC](https://forum.inductiveautomation.com/t/binding-template-properties-to-the-parent-template-repeater/21065/5 "2018-11-26T19:16:00Z")

</div>

You can use that too but it’s a method so the script will change to this

```auto
repeater = event.source.parent.getComponent('Template Repeater')
repeater.getLoadedTemplates()[1].test()

```
