# Ignition Perspective Flex Repeater

**URL:** <https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 20, 2024, 4:13pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244 "2024-09-20T16:13:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![csilk](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@csilk](https://forum.inductiveautomation.com/u/csilk)\
**Post date:** [September 20, 2024, 4:13pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/1 "2024-09-20T16:13:00Z")

</div>

I am having a hard time figuring out how I can do this... I have a view that has a flex repeater on it. The flex repeater uses a single template seen here...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5bbfbb10e8c60cff78445421a6c5c1f83d1021d1.png)

I have the textfield for Quote Number bound to an indirect tag

```python
[default]TagQuery/changeOrderCompleted[{instanceNum},1]

```

On my view, i have a startup script that will determine the number of instances needed to be displayed based on the value of a set of tags. Let's call the base tag 'coQN'. I have the tag 'coQN1' thru 'coQN10'. The script is basically reading in all of those tags and I then check to see if the value of each of the tags has an actual value or is 'null'. If the tag comes back with a value not equal to null, an instance is created. So there could either be 1 instance or 10. This is working as intended.

My problem is that I cannot get the data to correctly display in each instance of the flex repeater. The picture below shows the flex repeater that has 3 instances.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bdebb0fa743a47a740d07398f95cb2331647cc03.png)

The first instance (with the Quote Number text field highlighted in Green) is displaying the **correct** data. Tag is `changeOrderCompleted[1,1]` which has a value of 'CO7843-01-02'.

The second instance (with the Quote Number text field highlighted in Yellow) is displaying the **incorrect** data. Tag is `changeOrderCompleted[1,2]` which has a value of 'CO7843-01-03'.

The third instance (with the Quote Number text field highlighted in Yellow) is displaying the **incorrect** data. Tag is `changeOrderCompleted[1,3]` which has a value of 'CO7843-01-04'.

I realize that I need to increment the tag, but I am not sure how to achieve this by because they are "grouped" together and not isolated.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 20, 2024, 4:25pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/2 "2024-09-20T16:25:59Z")

</div>

in the instances prop of the Flex Repeater do the params have correct values? If that is not the case then it is a problem with how you are generating the instances.

---

<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:** [September 20, 2024, 5:11pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/3 "2024-09-20T17:11:33Z")

</div>

Show us the script that generates the instances, and tell us exactly what parameters your templates take.

But frankly, I'd rework things a bit. Use bindings instead of a startup script.  
Pass a tag path to your instances and let them handle their data and state themselves.

---

<div class="post-metadata">

**Author:** ![csilk](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@csilk](https://forum.inductiveautomation.com/u/csilk)\
**Post date:** [September 20, 2024, 6:12pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/4 "2024-09-20T18:12:57Z")

</div>

You were right, I wasn't passing the right parameters. Got it working, thanks!

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 20, 2024, 6:25pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/5 "2024-09-20T18:25:41Z")

</div>

Great! I would still consider what @pascal.fragnoud said. You should really just have the instances bound to that tag and base the instance logic off of that in a transform. You may find your startup script to be unreliable sometimes.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 20, 2024, 6:28pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-flex-repeater/96244/6 "2024-09-20T18:28:50Z")

</div>

I would also question why you are using a tag for a quotation application. Surely it should be directly interfacing with a database?
