# Ignition Perspective Table - After editing a cell, I want the new value to be written to an OPC tag

**URL:** <https://forum.inductiveautomation.com/t/ignition-perspective-table-after-editing-a-cell-i-want-the-new-value-to-be-written-to-an-opc-tag/105462>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 23, 2025, 1:03pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-table-after-editing-a-cell-i-want-the-new-value-to-be-written-to-an-opc-tag/105462 "2025-04-23T13:03:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bushmatic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bushmatic/32/87014_2.png) [@Bushmatic](https://forum.inductiveautomation.com/u/Bushmatic)\
**Post date:** [April 23, 2025, 1:03pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-table-after-editing-a-cell-i-want-the-new-value-to-be-written-to-an-opc-tag/105462/1 "2025-04-23T13:03:17Z")

</div>

Version 8.1.38

I have a Perspective table whose data is bound to a custom property on the view. This custom property itself pulls from a group of OPC tags being consolidated into an array of objects via a small script transform.

I want to set one column of my table to '`editable`' and have the new value (inputted by user) be written to its corresponding OPC tag mentioned above -- but for all intents and purposes, the table data is a one-way binding. So I am thinking I have to add a script to the `selection` -\> `data` property that contains `system.tag.writeBlocking`.

So at this point, I am wondering if I should set things up differently to make my life easier. Wondering if someone has already solved this issue or if there are any obvious recommendations. This is my first time messing around with tables and tag values together in Perspective.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [April 23, 2025, 3:22pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-table-after-editing-a-cell-i-want-the-new-value-to-be-written-to-an-opc-tag/105462/2 "2025-04-23T15:22:16Z")

</div>

> [@Bushmatic](#):
>
> add a script

Use the table's [`onEditCellCommit`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table/perspective-table-scripting#oneditcellcommit) scripting function to write the new value of the cell to the corresponding tag. You'll need to provide some way for the cell to know which tag it is getting its original value from.
