# How to use editor:true feature in uitable?

**URL:** https://discourse.nodered.org/t/how-to-use-editor-true-feature-in-uitable/46503
**Category:** Dashboard
**Created:** [31 May 2021 11:14 UTC](https://discourse.nodered.org/t/how-to-use-editor-true-feature-in-uitable/46503 "2021-05-31T11:14:56Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [31 May 2021 21:00 UTC](https://discourse.nodered.org/t/how-to-use-editor-true-feature-in-uitable/46503/2 "2021-05-31T21:00:51Z")

</div>

Hi,  
I think what is missing is a callback to get your data back

> [@Ui-table supports ui\_control](https://discourse.nodered.org/t/ui-table-supports-ui-control/18870/20):
>
> Hi ... did some tests and yes there is a little bit of a problem with the .getCell('id') if the id is hidden or was never visible. Could not find the cause, perhaps a bug of the tabulator version we use. But the .getIndex() from the row component should work. function(cell){ this.send({ ui\_control:{callback:'cellEdited'}, payload:cell.getValue(), oldValue:cell.getOldValue(), field:cell.getColumn().getField(), id:cell.getRow().getIndex() …

Or

> [@Examples for node-red-node-ui-table](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256/81):
>
> Yes ... isn't too difficult. You need a callback function to send the edited data back to Node-RED. Best is to define one for the hole table independent of the type of editor defined for the column: msg.ui\_control.tabulator.cellEdited. function(cell){ this.send({ ui\_control:{callback:'cellEdited'}, payload:cell.getValue(), oldValue:cell.getOldValue(), field:cell.getColumn().getField(), id:cell.getRow().getCell('id').getValue() }); …

Only the onClick callback is defined by default

And another tip: to easily write callbacks use a function node as an editor. The. Copy paste it into your JSON using the visual editor. This handles converting of the inverted commas for you

---

_[View the full topic](https://discourse.nodered.org/t/how-to-use-editor-true-feature-in-uitable/46503)._
