# Edit cell on Power table

**URL:** <https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266>\
**Category:** Ignition\
**Created:** [July 23, 2015, 8:56pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266 "2015-07-23T20:56:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 23, 2015, 8:56pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/1 "2015-07-23T20:56:23Z")

</div>

Hi, I manually create a dataset to my power table, now I try to edit the content but it doesn’t change, with the old table component I can do it easily.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 23, 2015, 9:23pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/2 "2015-07-23T21:23:49Z")

</div>

Hi there,

Did you make the column editable in the Table Customizer and implement the “onCellEdited” extension function that exists on the table?

Best,

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 24, 2015, 3:18pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/3 "2015-07-24T15:18:10Z")

</div>

Hi nmudge, I make the column editable and enabled the “onCellEdited” extension function but I don’t know how to configure this function to store the changes that I made to the cell.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 24, 2015, 3:48pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/4 "2015-07-24T15:48:57Z")

</div>

Uncomment the code that exists in the onCellEdited extension function.

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 24, 2015, 3:52pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/5 "2015-07-24T15:52:21Z")

</div>

I did that too, still not working, the code I uncommented is this:

```auto
import system
self.data = system.dataset.setValue(self.data, rowIndex, colIndex, newValue)
```

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 24, 2015, 4:22pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/6 "2015-07-24T16:22:53Z")

</div>

Okay, can you export the window and upload it to this thread? Then I can take a look.

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 24, 2015, 5:31pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/7 "2015-07-24T17:31:04Z")

</div>

here is the .proj is just a window with a power table.

[Window (2015-07-24) (2).proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/682932997796dc62bd1282da50f7d3d1f81adcb9.proj) (7.48 KB)

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 24, 2015, 6:11pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/8 "2015-07-24T18:11:58Z")

</div>

Your code is outside the onCellEdited extension function. Add one tab indentation to the code.

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [July 24, 2015, 7:05pm UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/9 "2015-07-24T19:05:27Z")

</div>

Mmmm, that was so easy, thanks nmudge.

---

<div class="post-metadata">

**Author:** ![jeffkrol](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeffkrol/32/3339_2.png) [@jeffkrol](https://forum.inductiveautomation.com/u/jeffkrol)\
**Post date:** [October 21, 2017, 1:03am UTC](https://forum.inductiveautomation.com/t/edit-cell-on-power-table/10266/11 "2017-10-21T01:03:04Z")

</div>

I just found this post and was having some problem getting the cell to update. Thanks for the information!
