# How to Dynamically Bind Tags from a Folder to a Flex Repeater in Ignition Perspective?

**URL:** <https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 18, 2025, 1:56pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833 "2025-03-18T13:56:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![masovicamar87](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@masovicamar87](https://forum.inductiveautomation.com/u/masovicamar87)\
**Post date:** [March 18, 2025, 1:56pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/1 "2025-03-18T13:56:04Z")

</div>

Hello everyone,

I am currently working on a project in _Ignition Perspective_ and I want to use the _Flex Repeater_ to dynamically display tags from a specific folder.

I have a folder with tags in Ignition, and I want each tag from that folder to be displayed as an instance in the _Flex Repeater_. Is there a way to bind the tags to the _Instances_ property of the Flex Repeater so that the corresponding number of instances is automatically created based on the number of tags in the folder?

Could someone help with an example of how to set this up? What bindings should I use to display the tags from the folder as instances in the Flex Repeater?

Also, it would be helpful to hear how you can use _system.tag.browse_ or a similar function to get a list of tags from a folder and how to bind that list to the Flex Repeater.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [March 18, 2025, 3:44pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/2 "2025-03-18T15:44:39Z")

</div>

Use [`system.tag.browse`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-browse) to get all the tag paths from the folder, and pass each tag path as a parameter per instance in the flex repeater.

Build your embedded view (the one that the flex repeater will use) to accept a tag path as a parameter and use that to indirectly bind to the tag.

The `instances` property of the flex repeater expects a list of dictionaries.  
`dictList = [{x: 1, Y: index} for index in xrange(10)]` is the basic list comprehension for making a list of dictionaries.

Edit: Found this post which is accomplishing a similar task of looking through a folder of tags and adding instances to a flex repeater. Should help to point you in the right direction:

> [@Flex Repeater, iterate through based on tag structure value](https://forum.inductiveautomation.com/t/flex-repeater-iterate-through-based-on-tag-structure-value/98752):
>
> I'm trying to use a Flex Repeater to iterate through a tag folder, look inside each tag folder, see if a particular tag is flagged on or off, and insert a template based on that status. My tag structure is set up as PLC Tags/Pumps/ and then inside Pumps is a UDT instance for each pump, called 1 through 6, and then another called Master. Inside the Pump UDT is a "Visibility" boolean element that reads a bit in the PLC. This bit designates if the pump is actually present or not. I have a template…

---

<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:** [March 18, 2025, 3:45pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/3 "2025-03-18T15:45:28Z")

</div>

This might be enough to get you started.

Open Script Console and try the following code:

```python
tags = system.tag.browse("[provider]folderName/", {})
for tag in tags:
	print tag
	print tag['fullPath']

```

* * *

Full response:

- On the Flex Repeater add a custom property, `folderPath` and set the value. It should look something like  
`folderPath : [default]myTagFolder`  
(Doing this will allow you to change the tag path without touching the binding / script.)
- Create a Property Binding on `PROPS.instances` and Script Transform as shown below.  
 ![Flex repeater instances binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/6/d66cdb7deff651f82532d08def55e3ad62682bff.png)

> **Script.**
>
> ```python
> def transform(self, value, quality, timestamp):
> tags = system.tag.browse(value, {})
> instances = []
> for tag in tags:
> instances.append({
> "instanceStyle": {
> "classes": ""
> },
> "instancePosition": {},
> "tagPath": tag['fullPath']
> })
> return instances
> 
> ```

---

<div class="post-metadata">

**Author:** ![masovicamar87](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@masovicamar87](https://forum.inductiveautomation.com/u/masovicamar87)\
**Post date:** [March 19, 2025, 8:28am UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/4 "2025-03-19T08:28:27Z")

</div>

Hi, thank you for your response, it was very helpful. Now, I have as many instances as tags, but I don't have their values (which are of boolean type). I have 20 instances (they are labels). Can I assign boolean values to these 20 label instances? Thank you in advance.

---

<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:** [March 19, 2025, 8:51am UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/5 "2025-03-19T08:51:56Z")

</div>

In the script shown, we've passed `tagPath` as a parameter to each instance of the repeated view.

- On your repeating view, create `PARAMS.tagPath`. Give it a value of a real tag so it shows something sensible in Designer.
- On the repeating view create a Property binding on the boolean display component's value property to `view.params.tagPath`. (Select it using the Browse Properties button to avoid errors.)

---

<div class="post-metadata">

**Author:** ![masovicamar87](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@masovicamar87](https://forum.inductiveautomation.com/u/masovicamar87)\
**Post date:** [March 19, 2025, 9:59am UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/6 "2025-03-19T09:59:13Z")

</div>

I don't know if I did it wrong, but now I have paths on my instances not boolean true/false, I am so sorry if my questions are dumb, but I am learning Ignition for only few days now.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 19, 2025, 12:18pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/7 "2025-03-19T12:18:03Z")

</div>

> [@masovicamar87](#):
>
> for only few days now

Have you gone through the free Inductive University online courses? They will cover all of the basics you are struggling with.

---

<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:** [March 19, 2025, 4:33pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/8 "2025-03-19T16:33:00Z")

</div>

1. What component are you using to display the boolean? Checkbox, Toggle Switch, Label?
2. How did you bind the component to the view parameter?

---

<div class="post-metadata">

**Author:** ![Michael\_Waite](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@Michael\_Waite](https://forum.inductiveautomation.com/u/Michael_Waite)\
**Post date:** [August 27, 2025, 5:07pm UTC](https://forum.inductiveautomation.com/t/how-to-dynamically-bind-tags-from-a-folder-to-a-flex-repeater-in-ignition-perspective/103833/9 "2025-08-27T17:07:13Z")

</div>

This is just what I needed. Thank you!
