# Write to Tags from Perspective Table

**URL:** <https://forum.inductiveautomation.com/t/write-to-tags-from-perspective-table/76188>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 11, 2023, 1:37pm UTC](https://forum.inductiveautomation.com/t/write-to-tags-from-perspective-table/76188 "2023-07-11T13:37:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![james4](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james4/32/49597_2.png) [@james4](https://forum.inductiveautomation.com/u/james4)\
**Post date:** [July 11, 2023, 1:37pm UTC](https://forum.inductiveautomation.com/t/write-to-tags-from-perspective-table/76188/1 "2023-07-11T13:37:56Z")

</div>

Good day,

I am reading a lot of posts about how to write to a tag from a perspective table but have not found a solution for what I am trying to do.

I would like to use a perspective table as an input for multiple indirect tags bound to each data prop element. I am not binding to the entire data prop, but instead items in each array:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b78cec8bdb9cf436025dcc1be1968fa2c446cfd0.png)

I have tried using the following:

```auto
def runAction(self, event):
	valueToSet = event.value
	self.props.data[event.row]['value'][event.column] = valueToSet

```

and get the following error:

```auto
Error running action 'component.onEditCellCommit' on 9 Press KY/AgingOvenLoad@D/root/Table: Traceback (most recent call last): File "<function:runAction>", line 3, in runAction KeyError: value

```

Is this possible to do with a perspective table or am I going down a dark hole. Once this is setup, there will be a set amount of data points and the entire dataset will not change in size. Thanks!

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 11, 2023, 3:04pm UTC](https://forum.inductiveautomation.com/t/write-to-tags-from-perspective-table/76188/2 "2023-07-11T15:04:39Z")

</div>

Make sure cells are set to be editable under your `columns` property, then under `onEditCellCommit` event, use

```auto
self.props.data[event.row][event.column] = event.value

```

---

<div class="post-metadata">

**Author:** ![james4](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james4/32/49597_2.png) [@james4](https://forum.inductiveautomation.com/u/james4)\
**Post date:** [July 11, 2023, 3:10pm UTC](https://forum.inductiveautomation.com/t/write-to-tags-from-perspective-table/76188/3 "2023-07-11T15:10:44Z")

</div>

Thank you worked like a charm.
