# Template Repeater, One Const Param, One Index Param

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [September 19, 2024, 3:48pm UTC](https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191 "2024-09-19T15:48:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 19, 2024, 3:48pm UTC](https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191/1 "2024-09-19T15:48:35Z")

</div>

I've got a template with indirection built in, so I've got 2 parameters for the template - "path" and "index". For all instances in one use of the repeater the "path" is constant, but the index needs to increment.

Is there any way to do this with the count method, or am I going to have to use the dataset method and script the creation of the dataset?

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [September 19, 2024, 3:54pm UTC](https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191/2 "2024-09-19T15:54:43Z")

</div>

I would suggest using @pturmel Integration Toolkit to create the dataset via an expression.

---

<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:** [September 20, 2024, 2:45am UTC](https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191/3 "2024-09-20T02:45:26Z")

</div>

I would use the dataset mode and simply script it at initialization if the path property is just a set it and forget it type of thing. The path column will be the only one that is needed since the index variable will still auto increment even in dataset mode.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 20, 2024, 1:06pm UTC](https://forum.inductiveautomation.com/t/template-repeater-one-const-param-one-index-param/96191/4 "2024-09-20T13:06:40Z")

</div>

> [@justinedwards.jle](#):
>
> the index variable will still auto increment even in dataset mode.

I did not know this
