# Template Repater Bindings

**URL:** <https://forum.inductiveautomation.com/t/template-repater-bindings/22822>\
**Category:** Ignition\
**Created:** [February 22, 2019, 10:03pm UTC](https://forum.inductiveautomation.com/t/template-repater-bindings/22822 "2019-02-22T22:03:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsteward](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jsteward](https://forum.inductiveautomation.com/u/jsteward)\
**Post date:** [February 22, 2019, 10:03pm UTC](https://forum.inductiveautomation.com/t/template-repater-bindings/22822/1 "2019-02-22T22:03:16Z")

</div>

I have template and would like to use the template repeater in Count mode, however I also want to be able to indirect bind properties on the specified template. eg. pass a tag path property through the template repeater object to the repeated template. is this possible? I do not want to use dataset mode on the template repeater object.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 22, 2019, 10:15pm UTC](https://forum.inductiveautomation.com/t/template-repater-bindings/22822/2 "2019-02-22T22:15:28Z")

</div>

No, you have to use one or the other - dataset or count. If you have a fixed set of indirect paths to pass to each template, it should be fairly easy to create them with a script.

---

<div class="post-metadata">

**Author:** ![jsteward](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jsteward](https://forum.inductiveautomation.com/u/jsteward)\
**Post date:** [February 22, 2019, 10:23pm UTC](https://forum.inductiveautomation.com/t/template-repater-bindings/22822/3 "2019-02-22T22:23:51Z")

</div>

Thanks for the reply… can you elaborate. Would I run the script from the template or the template repeater object? Either way, I am uncertain on how to access the template properties through scripting. Would you be able to provide and example.

say my template has a custom property call tagPath and I’m using the Count mode on the repeater for a property called index. How would i assign the tagPath to each instance of the templae?

Thanks!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 22, 2019, 10:51pm UTC](https://forum.inductiveautomation.com/t/template-repater-bindings/22822/4 "2019-02-22T22:51:04Z")

</div>

> [@jsteward](#):
>
> say my template has a custom property call tagPath and I’m using the Count mode on the repeater for a property called index. How would i assign the tagPath to each instance of the templae?

You don't need to directly assign anything - that's the advantage of dataset mode. You construct a dataset where each column has the same name as a given template parameter. Then, you populate each row in the dataset with the values you want each template to receive:

| index | tagpath |
| --- | --- |
| 1 | motors/motor 1 |
| 2 | motors/motor 2 |
| 3 | motors/motor 3 |

You would do this from a script somewhere on the window that contains the template repeater. If the list is static, you could just do it from `visionWindowOpened` ( a startup event on the window object itself).
