# row.getCell(columnName) in nodered-ui-Table doesn't work

**URL:** <https://discourse.nodered.org/t/row-getcell-columnname-in-nodered-ui-table-doesnt-work/67674>\
**Category:** General\
**Created:** [14 September 2022 05:49 UTC](https://discourse.nodered.org/t/row-getcell-columnname-in-nodered-ui-table-doesnt-work/67674 "2022-09-14T05:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [14 September 2022 05:49 UTC](https://discourse.nodered.org/t/row-getcell-columnname-in-nodered-ui-table-doesnt-work/67674/1 "2022-09-14T05:49:10Z")

</div>

Hi I am trying to use the row.getCell(column) in my nodered-ui-Table so that when a user edited a specific cells or rows it will send a callbacks.

However, it seems like this function is not functioning well.  
I have columns set via msg.ui\_control to be something like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/1415801d442f904f5b96933a90a7f965c7352f25.png)

What I want is, when I edited tha column "Tagname", I want to get it's oldValue.  
Before I can do this by using the  
`"cell.getOldValue()"` function on cell component. However, due to I need to switch my function to be on "Row component" instead of cell. I change my code to be `"row.getCell('measurement').getOldValue()"`

However this function does not return the anything. As per document on tabulator:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4bd51795c21b1e3916a9ba3e287611310b67906b.png)  
The function returns the cell component of the specific column. So from what I understand, it is still the same as `cell.getOldValue()`

here is my code where I put my function, it is under the msg.ui\_control:

```auto
{
                "title": "Tagname",
                "field": "measurement",
                "headerTooltip": "Tagname",
                "editor": true,
                "hozAlign": "center",
                "headerFilter": "input",
                "frozen": true,
                "width": 200,
                "validator": [
                    "required",
                    "unique"
                ],
                "cellEdited": "function(row) {var new_data = {rowdata: row.getData(), passTagname:row.getCell(measurement).getOldValue(), callBack: 'editedTagname' }; this.send(new_data);}"

```

Again, I wanna tag my friend @Christian-Me. Hoping hope can suggest.

Thank you.

Regards,  
Henjoe

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 November 2022 05:49 UTC](https://discourse.nodered.org/t/row-getcell-columnname-in-nodered-ui-table-doesnt-work/67674/2 "2022-11-13T05:49:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
