# Edit table cell with results from pop up window

**URL:** <https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901>\
**Category:** Ignition\
**Created:** [May 2, 2018, 3:16pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901 "2018-05-02T15:16:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mluedecke](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mluedecke](https://forum.inductiveautomation.com/u/mluedecke)\
**Post date:** [May 2, 2018, 3:16pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/1 "2018-05-02T15:16:58Z")

</div>

I am wanting to allow a user to click in a cell of a table which will open a pop-up window. In the pop up window, the user will select some items that will build a string. I want that string to populate the cell on the original table that is selected. How can I do that? I am using Ignition 7.9.6.

---

<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:** [May 2, 2018, 5:26pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/2 "2018-05-02T17:26:30Z")

</div>

What you need is a custom cell editor for your column. [This search](http://forum.inductiveautomation.com/search?q=cell%20editor) will take you to a number of discussions of the various techniques available.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [May 4, 2018, 8:12am UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/3 "2018-05-04T08:12:34Z")

</div>

Enclosed is an example using a popup window that will write back to the originating row in another row. If you double click the “String Column”, it will open a popup window, passing in the clicked row and column indexes, as well as the window name and the path to the table component. All the magic happens in the onDoubleClick event on the table, and on the submit button on the popup. This is a way to solve this issue in the most basic way, without needing to understand java. Let me know if you have any questions.

[demo\_2018-05-04\_0206\_partial.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bc9958cfbbe7c70bfb97163bbd7e8ae108b70bb9.proj) (34.0 KB)

---

<div class="post-metadata">

**Author:** ![mluedecke](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mluedecke](https://forum.inductiveautomation.com/u/mluedecke)\
**Post date:** [May 4, 2018, 8:09pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/4 "2018-05-04T20:09:19Z")

</div>

Thanks for the help. I will take a look at this and get it to work.

---

<div class="post-metadata">

**Author:** ![mluedecke](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mluedecke](https://forum.inductiveautomation.com/u/mluedecke)\
**Post date:** [May 4, 2018, 8:57pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/5 "2018-05-04T20:57:14Z")

</div>

Worked like a charm. Thank you very much for your assistance.

---

<div class="post-metadata">

**Author:** ![bgiles](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bgiles](https://forum.inductiveautomation.com/u/bgiles)\
**Post date:** [December 14, 2018, 3:10am UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/6 "2018-12-14T03:10:24Z")

</div>

Kyle, that was a great example. Thank you for sharing it. I want to use it to edit a table on a tablet since it is hard to use a dropdown list on a tablet.

The power table data is bound to an SQL query. I have an SQL update script on the powertable’s onCellEdited event. Whenever i use the popup window to update a cell in the table, i press submit and it will put the text in the cell but seconds later it reverts back to the previous value. Does anyone know why it keeps doing this?

If I don’t use the popup window and just double click to edit the cell it works.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a7e904fa188c9600685c34268a6cc9fe7d0d1374.jpg)

---

<div class="post-metadata">

**Author:** ![bgiles](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bgiles](https://forum.inductiveautomation.com/u/bgiles)\
**Post date:** [December 26, 2018, 3:43pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/7 "2018-12-26T15:43:08Z")

</div>

Anyone able to provide any help with this? I am still stumped.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [December 26, 2018, 4:41pm UTC](https://forum.inductiveautomation.com/t/edit-table-cell-with-results-from-pop-up-window/17901/8 "2018-12-26T16:41:21Z")

</div>

The onCellEdited isn’t being fired.  
I would pass the record ID to the popup and then run the update query there.  
Then on close of the popup refresh the datasource of the table.
