# \[Bug\] Perspective Table Selection not Updating with Data Change

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updating-with-data-change/47243>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 28, 2021, 3:12pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updating-with-data-change/47243 "2021-05-28T15:12:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [May 28, 2021, 3:12pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updating-with-data-change/47243/1 "2021-05-28T15:12:43Z")

</div>

I’ve created a table that has its data written to it via external (Button) script (no Binding). I am updating the edits to the table with an ‘onEditCellCommit’ script:

```auto
	newData = system.dataset.setValue(self.props.data, event.row, event.column, event.value)
	self.props.data = newData

```

However, when the ‘onEditCellCommit’ has fired, the `self.props.selection.data` does NOT update when the `self.props.data` changes. It only changes when the focus is lost (subsequently scripting becomes 10x more difficult to capture changes).

Can’t do a refreshBinding() because there’s no binding to refresh.

@cmallonee , care to comment? Is there anything I might be missing?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 28, 2021, 3:30pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updating-with-data-change/47243/2 "2021-05-28T15:30:44Z")

</div>

This sounds like an issue we’re already aware of where the declared selection in props does not update when the data in that row changes (or in some cases is deleted). This issue was resolved in 8.1.7 (issue #1115) and so should be available in the nightly build. I would recommend trying out that build on a separate environment to see if the fix resolved your issue.

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [May 28, 2021, 3:42pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-table-selection-not-updating-with-data-change/47243/3 "2021-05-28T15:42:41Z")

</div>

Okay, thanks @cmallonee , I’ll test it in our Dev environment and let you know.
