# Trouble Getting Template Repeater Working

**URL:** <https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234>\
**Category:** Ignition\
**Created:** [February 18, 2016, 6:43pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234 "2016-02-18T18:43:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corey.Furman](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Corey.Furman](https://forum.inductiveautomation.com/u/Corey.Furman)\
**Post date:** [February 18, 2016, 6:43pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234/1 "2016-02-18T18:43:24Z")

</div>

I have been watching the webinar on how to use templates, and in particular the template repeater. I have created the tags for four bulk liquid tanks, and I have created a template for them. The custom property of the template is DeviceName, and I have added the memory tag to each of the devices.

If I drop four instances of the template on a window and manually set the DeviceName of each template, everything works as I expect.

When I add the template repeater, I can’t seem to make it work. The repeater itself seems to display the correct number of templates, so layout is working, but I have red x’s on the tags. My guess is that I somehow need to get the template repeater to pass in the DeviceName, but I can’t see to figure out what I’m missing. See the attached screenshot, which is of a window showing the template in use and operating correctly on the left, but a broken template repeater on the right.

If anyone can help, I would be most grateful. Thanks.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [February 18, 2016, 7:20pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234/2 "2016-02-18T19:20:58Z")

</div>

The template repeater dataset should have a column named for your parameter field.  
So the last column of the dataset in your case should be named DeviceName  
In that column you put the value for each tank.

---

<div class="post-metadata">

**Author:** ![Corey.Furman](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Corey.Furman](https://forum.inductiveautomation.com/u/Corey.Furman)\
**Post date:** [February 18, 2016, 7:51pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234/3 "2016-02-18T19:51:04Z")

</div>

Thanks! That makes a lot of sense. I knew that the information wasn’t being passed in.

Still, the dots aren’t quite connecting. When you speak of the “template repeater dataset”, how do I get to it? The closest I’ve come is the Template Parameters, and I don’t think that’s it - though I can create a column and add my values. In my template under custom properties, I do see my DeviceName property, but I don’t see how to add an ad hoc dataset to it.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [February 18, 2016, 8:03pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234/4 "2016-02-18T20:03:25Z")

</div>

The .templates IS the dataset for the repeater.

There are a few ways to use the repeater,  
1 is you make your parameter field a number and then use the template repeat count field to fill that in.

2 is to fill a dataset manually or using a query and fill in all of the required dataset fields.  
Drag a blank repeater to a window.  
Set the repeater to Repeat Behavior = Dataset  
Right click it and customize template repeater.  
Fill in the fields choosing your template in the drop down and click Add.  
Close the customizer and then look at the dataset that is created under .templates  
Add as many rows as you wish changing the last column which is the name of your parameter.

---

<div class="post-metadata">

**Author:** ![Corey.Furman](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Corey.Furman](https://forum.inductiveautomation.com/u/Corey.Furman)\
**Post date:** [February 18, 2016, 8:15pm UTC](https://forum.inductiveautomation.com/t/trouble-getting-template-repeater-working/11234/5 "2016-02-18T20:15:06Z")

</div>

A little bit of experience goes a long way. I changed the Repeat Behavior from count to dataset, and boo, it worked instantly.

Thanks for the hand up.
