# Dynamic Cell Update Binding - UDT

**URL:** <https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083>\
**Category:** Ignition\
**Created:** [August 16, 2017, 2:57pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083 "2017-08-16T14:57:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedric](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@cedric](https://forum.inductiveautomation.com/u/cedric)\
**Post date:** [August 16, 2017, 2:57pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/1 "2017-08-16T14:57:07Z")

</div>

Hi everyone.

In the Ignition I have a “Power Table” that is filled by a script.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1826d091c2de18e59cb117310204c02d1ac0fb2b.png)

The script read the Tags inside a folder and in the first column insert the tagpath (one tagpath by row).  
Now I need to insert the values in the other columns for each tagpath, but I don’t want to binding the values manually (cell binding) and I need a dynamic update (auto-update).

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dfdc668db358023d6de8a793aa2157519be4f8f9.png)

I can create a script that read a tag and insert the value in the table, but I don’t like this method.  
Can I binding the values as I bind an indicator (for exemple LED Indicator) to an UDT? And this UDT use the tagpath to pick up the values?

---

<div class="post-metadata">

**Author:** ![lautry](https://avatars.discourse-cdn.com/v4/letter/l/a8b319/32.png) [@lautry](https://forum.inductiveautomation.com/u/lautry)\
**Post date:** [August 16, 2017, 5:43pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/2 "2017-08-16T17:43:14Z")

</div>

If you don’t mind me asking, could you provide that script for me? I posted a thread a couple of days ago similar to this, and this sounds exactly like what I need, although I feel as there is another way to do this as well.

---

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [January 15, 2018, 10:49am UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/3 "2018-01-15T10:49:41Z")

</div>

Hi,

Searching for the solution as well.  
A table to follow the evolution of some selected tags in client would be nice for sure (I only have the selected one currently with a simple label on the selected row).

@lautry  
I did it using system.tag.browseTags and system.dataset.addRow.

---

<div class="post-metadata">

**Author:** ![Myllka](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myllka/32/4140_2.png) [@Myllka](https://forum.inductiveautomation.com/u/Myllka)\
**Post date:** [January 26, 2018, 2:13pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/4 "2018-01-26T14:13:12Z")

</div>

Just had an idea that seems to work for me:  
I use a custom methods taking the tag path and filling the other cells with the value I need (the method return a new dataset at the end). I call this methods from an expression bind on the data of the table with a pollRate of 1s.

---

<div class="post-metadata">

**Author:** ![facundo\_martin](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@facundo\_martin](https://forum.inductiveautomation.com/u/facundo_martin)\
**Post date:** [March 12, 2019, 1:10pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/5 "2019-03-12T13:10:43Z")

</div>

Hello @Myllka, @cedric, can you tell my how did you solve this? I’m working on the same thing. Thanks!

---

<div class="post-metadata">

**Author:** ![Mau89](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mau89/32/20680_2.png) [@Mau89](https://forum.inductiveautomation.com/u/Mau89)\
**Post date:** [March 12, 2019, 1:29pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/6 "2019-03-12T13:29:11Z")

</div>

Hi,  
a solution could be to use a template repeater

---

<div class="post-metadata">

**Author:** ![facundo\_martin](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@facundo\_martin](https://forum.inductiveautomation.com/u/facundo_martin)\
**Post date:** [March 12, 2019, 6:51pm UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/7 "2019-03-12T18:51:17Z")

</div>

Yes, is a good one, but I need to apply this to a big amount of tags. So I think it’s gonna look better in a table. Thanks!

---

<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:** [March 13, 2019, 4:32am UTC](https://forum.inductiveautomation.com/t/dynamic-cell-update-binding-udt/15083/8 "2019-03-13T04:32:31Z")

</div>

From what I can tell, the script he’s using creates the table dataset from scratch and then he simply binds this dataset to the table data property.  
e.g. the script will create a dataset with the same field columns as in the dataset in his screenshot:  
tagPath | Select | Board | Channel | Group | etc…

Calling it every 1s will then update the values.  
I presume that the script is within a library and that it’s called using the expression function: runScript(…)

My question is: does sorting and filtering still work? Or is this reset each time the table contents are updated?
