# Repeat Component with table field

**URL:** <https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341>\
**Category:** Ignition\
**Created:** [May 18, 2017, 3:15pm UTC](https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341 "2017-05-18T15:15:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cadv](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@cadv](https://forum.inductiveautomation.com/u/cadv)\
**Post date:** [May 18, 2017, 3:15pm UTC](https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341/1 "2017-05-18T15:15:20Z")

</div>

Hi,  
I am trying to use the Template Repeater component to repeat a LED Display component in a template. I am binding the repeat behavior to the number of rows in a data table. I want each LED Display to display a value of a field for each row of the dataset, so the first row will have the value of the field “field1” where “rowID=1”, the second row value of “field1” where “rowID=2” and so on. I know the query but I don’t know how to bind it automatically to each template.  
Something similar is done in the tutorial video of the template repeater (without the database).

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![adam.morales](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adam.morales/32/3405_2.png) [@adam.morales](https://forum.inductiveautomation.com/u/adam.morales)\
**Post date:** [May 18, 2017, 10:40pm UTC](https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341/2 "2017-05-18T22:40:35Z")

</div>

If these values are coming from a database, then the best solution may be to set the Repeat Behavior to dataset mode, then add a SQL Query binding to the Template Parameters parameter of the template repeater. This query can bring back all of the values needed, and will create one template instance for every row returned. The template parameters will be set by the field values in their respective rows, provided that the db table’s column names match the template’s parameter names.

---

<div class="post-metadata">

**Author:** ![cadv](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@cadv](https://forum.inductiveautomation.com/u/cadv)\
**Post date:** [May 19, 2017, 9:03am UTC](https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341/3 "2017-05-19T09:03:18Z")

</div>

hi Adam,

Thanks for the replay. I already have one template for each row, the problem is that each repeated template (LED Display) is showing the same value, and i don’t know how to make each LED show a different value/row.

---

<div class="post-metadata">

**Author:** ![cadv](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@cadv](https://forum.inductiveautomation.com/u/cadv)\
**Post date:** [May 19, 2017, 10:41am UTC](https://forum.inductiveautomation.com/t/repeat-component-with-table-field/14341/4 "2017-05-19T10:41:56Z")

</div>

I found the solution, it was just changing the name.
