# Flex repeater instance set dynamic in perspective

**URL:** <https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [August 7, 2023, 6:37am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504 "2023-08-07T06:37:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [August 7, 2023, 6:37am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/1 "2023-08-07T06:37:58Z")

</div>

Hi guys,

Any idea how to fix this?

In my case, two named queries one is the total quantity (instances), and another one is the details of the quantity (instances).

if it is a total quantity of 36 (first screenshot) then in the flex repeater total instances are 36. In total 36 instances, 5 instances of details are available (second screenshot) showing in particular component and the remaining 31 components (instances) display blank.

1. 

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e09c57cd1f9e94adef9e5254c7eda5e629a9353e.png)

1. 

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1cd6658737b0713c2057c5abfdbf8d2610c888b9.png)

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 7, 2023, 6:41am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/2 "2023-08-07T06:41:45Z")

</div>

Going to need a **lot** more information to begin to help with this (we're not omniscient).

Firstly, what is populating your (2) flex repeater?

---

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [August 7, 2023, 6:46am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/3 "2023-08-07T06:46:56Z")

</div>

This is the template (set dynamic):

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/90a1dcbf463233819d870f78b5632f5017825c11.png)

This template repeats 36 times but only the first 5 template display name remaining 31 template display blank.

---

<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:** [August 7, 2023, 6:48am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/4 "2023-08-07T06:48:23Z")

</div>

> [@Priyanka.Khandge](#):
>
> Any idea how to fix this?

Fix what ?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 7, 2023, 6:48am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/5 "2023-08-07T06:48:24Z")

</div>

This doesn't help... I ask again, what is _producing_ your flex repeater instance prop? (and what is the resulting value of your flex repeater instances prop?)

Consider, if I asked you what was wrong with my script, and gave you only the result of it, would you be able to tell me what's wrong with the script? (the answer is no, if it's not obvious, because I didn't give you the script to analyse)

Please, write your questions with other people in mind. We don't know your project, we don't know what you're thinking. We know what you provide to us. We can't tell you why something isn't working if you don't give us the something that isn't working, and the thing that is producing the something.

---

<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:** [August 7, 2023, 7:45am UTC](https://forum.inductiveautomation.com/t/flex-repeater-instance-set-dynamic-in-perspective/77504/6 "2023-08-07T07:45:18Z")

</div>

If I understand correctly:  
You want to display 36 templates in a repeater, but one 5 of them are displaying the actual data.

You're feeding the data for 5 instances, as shown in your second screenshot.  
I'd drop the first query and change the second one to return data for all 36 instances. It's usually as simple as changing the `join` method or the `where` clause.
