# Writing a value of a table to a tag

**URL:** <https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 28, 2021, 5:04am UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091 "2021-04-28T05:04:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzahin](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fzahin](https://forum.inductiveautomation.com/u/fzahin)\
**Post date:** [April 28, 2021, 5:04am UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091/1 "2021-04-28T05:04:53Z")

</div>

I am trying to read the value of one of the columns of a table having a 6\*2 datatset and write them to 6 tags. Can anyone tell me how I can write the value from a table to a tag?

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [April 28, 2021, 6:39am UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091/2 "2021-04-28T06:39:27Z")

</div>

Hi @fzahin, is this for Vision or Perspective?

---

<div class="post-metadata">

**Author:** ![fzahin](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fzahin](https://forum.inductiveautomation.com/u/fzahin)\
**Post date:** [April 28, 2021, 8:49am UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091/4 "2021-04-28T08:49:34Z")

</div>

@matthew.ayre Hi, I am enquiring about vision

---

<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:** [April 28, 2021, 9:41am UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091/5 "2021-04-28T09:41:32Z")

</div>

```auto
tags=['tag1', 'tag2',...] 

pds=system.dataset.toPyDataSet(<your dataset goes here>)

vals=pds[:,1] #get the 2nd column as a list
system.tag.writeAsync(tags, vals) 

```

I don’t know how your dataset is stored, whether it’s in a tag or a component custom property. The tags list should contain the complete tagpaths to your tags

---

<div class="post-metadata">

**Author:** ![fzahin](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fzahin](https://forum.inductiveautomation.com/u/fzahin)\
**Post date:** [April 28, 2021, 1:31pm UTC](https://forum.inductiveautomation.com/t/writing-a-value-of-a-table-to-a-tag/46091/6 "2021-04-28T13:31:38Z")

</div>

Hi @nminchin, my problem with scripts is that it needs to be put under a event handler of any component, but what I essentially want is a binding type of scenario. For instance, when I go to the data property of the table, press the bind icon, I can go to cell update and bind each element on the table individually to a tag. But this allows only a unidirectional binding and and doesn’t let the table write to the tag, only the tag can write to the cell on the table. Could you suggest me a way where I could create a binding kind of scenario between the cell of a table and a tag where the table writes to the tag?
