# Examples for node-red-node-ui-table

**URL:** https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256
**Category:** Dashboard
**Created:** [12 August 2019 17:52 UTC](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256 "2019-08-12T17:52:43Z")
**Posts on this page:** 1
**Showing post:** 76

<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: [14 April 2020 06:13 UTC](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256/76 "2020-04-14T06:13:57Z")

</div>

Now I`m back on my computer and can give you a litle bit more info

```auto
msgToTable.payload={
    "command":"updateOrAddData",
    "arguments": [[{"id":123,"columnField":"updated"},{"id":124,"columnField":"new"}]],
    "returnPromise": false
};

```

To update a single cell (or many cells in a row) the row has to be identified. By default the field `id` is defined for that purpose but it can be changed by "index":"anyField". If the value of the index property isn't in the table a new row will be added (if id 124 is not present).

---

_[View the full topic](https://discourse.nodered.org/t/examples-for-node-red-node-ui-table/14256)._
