# Template repeater using dynamic dataset

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424>\
**Category:** Ignition\
**Created:** [January 26, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424 "2022-01-26T23:24:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shruty\_balaji](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@shruty\_balaji](https://forum.inductiveautomation.com/u/shruty_balaji)\
**Post date:** [January 26, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/1 "2022-01-26T23:24:31Z")

</div>

Hello, I am very new to ignition.I have 5 buttons and every time i press a button ,a pop up window should appear with toggle buttons. The label on the toggle buttons is dynamic i.e depending on which of the 5 buttons i pressed, my pop up window should show different toggle buttons . Since i will be using more than 1 toggle button, i am using the dataset property of template repeater . I have written a script which creates the dataset for the repeater but i am not able to display the buttons

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [January 27, 2022, 1:48pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/2 "2022-01-27T13:48:41Z")

</div>

Hi, welcome to the forum!  
I’m not sure i understand exatly, you have a main screen with buttons, and they all open the same popup which contains a few toggle buttons but each toggle button should have different labels depending on the button that opened the popup?  
An easier method could be to just pass parameters to the popup with your open window script, but if you need to use the template repeater, can you show us how you’re building the dataset and the resulting dataset that you’ve built? And the configurations on the template repeater’s properties would make things easier to spot any mistakes.

---

<div class="post-metadata">

**Author:** ![shruty\_balaji](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@shruty\_balaji](https://forum.inductiveautomation.com/u/shruty_balaji)\
**Post date:** [February 8, 2022, 6:31pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/3 "2022-02-08T18:31:54Z")

</div>

Thankyou … I resolved my issue

---

<div class="post-metadata">

**Author:** ![jacque\_trahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jacque_trahan/32/58886_2.png) [@jacque\_trahan](https://forum.inductiveautomation.com/u/jacque_trahan)\
**Post date:** [April 21, 2023, 1:49pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/4 "2023-04-21T13:49:53Z")

</div>

What was the issue and how did you resolve it?

I am in the process of doing a similar process but my buttons will have images and grow from 3 button on a small end and 8+ on a high end. Any insight would be greatly apprenticed.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [April 21, 2023, 2:26pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/5 "2023-04-21T14:26:51Z")

</div>

I think ta better question in this case would be: What's not working in your case ? What difficulties are you running into ?

Flex repeaters are powerful and versatile, and the use cases are endless.  
So it's hard to give advice/insight without more details.

---

<div class="post-metadata">

**Author:** ![jacque\_trahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jacque_trahan/32/58886_2.png) [@jacque\_trahan](https://forum.inductiveautomation.com/u/jacque_trahan)\
**Post date:** [April 21, 2023, 3:06pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/6 "2023-04-21T15:06:15Z")

</div>

True. Still getting grasp of it but right now my goal is to see how can change an image and text as need on on each button.

I ma reading the docs right now and see if i can get it to work.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [April 21, 2023, 3:09pm UTC](https://forum.inductiveautomation.com/t/template-repeater-using-dynamic-dataset/55424/7 "2023-04-21T15:09:51Z")

</div>

Most of the time, I end up using a script transform to transform the initial data to something that matches what the repeater's `instances` property expects. It's quite rare to get data readily usable.

A script transform will allow you to change anything that needs to be changed.
