# Binding

**URL:** <https://forum.inductiveautomation.com/t/binding/5024>\
**Category:** Ignition\
**Created:** [August 16, 2012, 8:22pm UTC](https://forum.inductiveautomation.com/t/binding/5024 "2012-08-16T20:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailfire](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tailfire](https://forum.inductiveautomation.com/u/tailfire)\
**Post date:** [August 16, 2012, 8:22pm UTC](https://forum.inductiveautomation.com/t/binding/5024/1 "2012-08-16T20:22:02Z")

</div>

Here is a ‘basic’ problem. I have 91 udt’s that have 6 tags within them that i want to display in a tabular format. I have been using ‘cell update’ binding on a table in which it seems would provide the solution to my need. It seems that this is a very ‘click intensive’ way to solve my problem. This method could take hours to do and possibly leave room for error. My question , hopefully clear would be is there a better way to do this?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [August 16, 2012, 10:43pm UTC](https://forum.inductiveautomation.com/t/binding/5024/2 "2012-08-16T22:43:15Z")

</div>

You either to that manually or create a dataset through a script.

If you want to do a script, you can put a timer component on the window that is in charge of refreshing the table. On the timer we can add an actionPerformed script that looks something like this:[code]header = [“Load Name”, “Discharge Air Temp”, “Zone Temp”, “Status Indicator Value”, “Fan Running”]  
data = []  
for i in range(20):  
tagNum = i+1  
tag1 = system.tag.getTagValue(“NOVAR TAGS/LOAD %d/Name” % tagNum)  
tag2 = system.tag.getTagValue(“NOVAR TAGS/LOAD %d/Discharge Air Temp” % tagNum)  
tag3 = system.tag.getTagValue(“NOVAR TAGS/LOAD %d/Zone Temp” % tagNum)  
tag4 = system.tag.getTagValue(“NOVAR TAGS/LOAD %d/Status Indicator Value” % tagNum)  
tag5 = system.tag.getTagValue(“NOVAR TAGS/LOAD %d/Fan Running” % tagNum)  
data.append([tag1, tag2, tag3, tag4, tag5])

event.source.parent.getComponent(“Table”).data = system.dataset.toDataset(header, data)[/code]The script loops through 20 devices and gets 5 tags. You can change the number of devices and how many tags you want to bring back. Let us know if you have any questions.
