# onCellEdited Event

**URL:** <https://forum.inductiveautomation.com/t/oncelledited-event/21609>\
**Category:** Ignition\
**Created:** [December 27, 2018, 11:02pm UTC](https://forum.inductiveautomation.com/t/oncelledited-event/21609 "2018-12-27T23:02:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [December 27, 2018, 11:02pm UTC](https://forum.inductiveautomation.com/t/oncelledited-event/21609/1 "2018-12-27T23:02:36Z")

</div>

I’m using onCellEdited function to write power table dataset back to database.It works perfectly fine if i change value edited cell directly, but when I edit cells by scripting (from another component), onCellEdit function doesn’t get invoke.

Is there any other way to do same?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 27, 2018, 11:45pm UTC](https://forum.inductiveautomation.com/t/oncelledited-event/21609/2 "2018-12-27T23:45:59Z")

</div>

Your other scripts should write directly to the DB, then use system.db.refresh to update your table.
