# Adding to a Table when tags change

**URL:** <https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755>\
**Category:** Ignition\
**Created:** [July 6, 2018, 6:04pm UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755 "2018-07-06T18:04:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![caroline.piephoff](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@caroline.piephoff](https://forum.inductiveautomation.com/u/caroline.piephoff)\
**Post date:** [July 6, 2018, 6:04pm UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755/1 "2018-07-06T18:04:59Z")

</div>

I have a pop-up window with a power table that I want to add entries to when certain tags change. I have 12 tags that I am controlling values for on a separate page, and I want to be able to track their value changes in one table. Right now I have 12 separate small tables, one tracking each tag, and it works but it’s messy and I’m sure there’s a better way. Is there some way to script to a table to have it add entries for every time one of my tags changes? I haven’t been able to figure it out on my own yet. Thank you!

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

---

<div class="post-metadata">

**Author:** ![jordanv](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jordanv](https://forum.inductiveautomation.com/u/jordanv)\
**Post date:** [July 6, 2018, 11:11pm UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755/2 "2018-07-06T23:11:54Z")

</div>

How are you tracking the value changes? If you are using the tag historian then you can bind the tables data property to a tag history binding.

[https://www.inductiveuniversity.com/video/tag-historian-binding/7.9](https://www.inductiveuniversity.com/video/tag-historian-binding/7.9)  
[https://docs.inductiveautomation.com/display/DOC79/Tag+History+Binding](https://docs.inductiveautomation.com/display/DOC79/Tag+History+Binding)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 7, 2018, 11:32am UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755/3 "2018-07-07T11:32:22Z")

</div>

IMO, I’d use transaction groups to put them all into one database table, then pull out the data you need back out. One table to rule them all…

---

<div class="post-metadata">

**Author:** ![caroline.piephoff](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@caroline.piephoff](https://forum.inductiveautomation.com/u/caroline.piephoff)\
**Post date:** [July 13, 2018, 5:55pm UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755/4 "2018-07-13T17:55:31Z")

</div>

I’ve tried using your suggestions since I am tracking the changes with a tag historian and I’m getting an error message when I try to bind my tags. I’ve attached screenshots of the binding and the error message, if you wouldn’t mind looking. Is there something obvious I’m missing?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3a502f14d54c69df4bd46f1c67b90a0535f867c5.PNG)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/011c15575b740b1f936cd05dc3a2ffe096eab22f.PNG)

---

<div class="post-metadata">

**Author:** ![jordanv](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jordanv](https://forum.inductiveautomation.com/u/jordanv)\
**Post date:** [July 13, 2018, 6:19pm UTC](https://forum.inductiveautomation.com/t/adding-to-a-table-when-tags-change/18755/5 "2018-07-13T18:19:11Z")

</div>

It looks like a problem with the way you have your indirection set up. If you are just going to be looking at the same 12 tags all the time I would suggest getting rid of the indirection and using the Available Historical Tags tree on the left to drag and drop the 12 tags onto the Selected Historical Tags. I think you might also want to change your aggregation mode to closest value, but that it is not the cause of the error.

[https://docs.inductiveautomation.com/display/DOC79/Sample+Size+and+Aggregation+Mode](https://docs.inductiveautomation.com/display/DOC79/Sample+Size+and+Aggregation+Mode)
