# Ui\_table problem with row

**URL:** <https://discourse.nodered.org/t/ui-table-problem-with-row/43268>\
**Category:** Dashboard\
**Created:** [27 March 2021 09:56 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268 "2021-03-27T09:56:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonecrevatin](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@simonecrevatin](https://discourse.nodered.org/u/simonecrevatin)\
**Post date:** [27 March 2021 09:56 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/1 "2021-03-27T09:56:59Z")

</div>

Hello everyone. i'm new to node red. Whenever I get a string via udp it overwrites my table row.  
How can I create a new row every time I get new data?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 March 2021 10:13 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/2 "2021-03-27T10:13:11Z")

</div>

Welcome to the forum @simonecrevatin

It is important to remember when you ask a question that we know absolutely nothing about your system.  
So the first question is what table? A table in a database? A table in the dashboard?

If it is on the dashboard then add a debug node to see what you are sending to the table.

**[Edit]** Sorry, I have just noticed that you have asked this on the dashboard category so that answers the first question. Have a look and see what you are sending to the table.

---

<div class="post-metadata">

**Author:** ![simonecrevatin](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@simonecrevatin](https://discourse.nodered.org/u/simonecrevatin)\
**Post date:** [27 March 2021 10:19 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/3 "2021-03-27T10:19:05Z")

</div>

hi colin and thanks for replying. what comes to the table is right. the problem is that every time the data arrives it does not add a line below but always overwrites the same one.

```auto
[{"id":"af3bef71.71506","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"16420da2.c92e8a","type":"osc","z":"af3bef71.71506","name":"","path":"/zoom/userName/pin","metadata":false,"x":730,"y":320,"wires":[["a62520af.df028"]]},{"id":"56895fcf.262508","type":"template","z":"af3bef71.71506","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":430,"y":340,"wires":[["16420da2.c92e8a","6bbfd898.2f9bb8"]]},{"id":"6bbfd898.2f9bb8","type":"debug","z":"af3bef71.71506","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"topic","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":440,"wires":[]},{"id":"a62520af.df028","type":"udp out","z":"af3bef71.71506","name":"","addr":"192.168.1.190","iface":"","port":"9090","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":980,"y":320,"wires":[]},{"id":"5c0c9175.a250f8","type":"ui_text_input","z":"af3bef71.71506","name":"","label":"","tooltip":"","group":"bae91be6.23cdf8","order":1,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"topic","topicType":"msg","x":170,"y":540,"wires":[["56895fcf.262508"]]},{"id":"3e1f4674.9520c2","type":"osc","z":"af3bef71.71506","name":"","path":"/zoom/list","metadata":false,"x":710,"y":200,"wires":[["a62520af.df028"]]},{"id":"176b49fc.b5cc36","type":"inject","z":"af3bef71.71506","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":380,"y":220,"wires":[["3e1f4674.9520c2"]]},{"id":"487c1468.e6201c","type":"osc","z":"af3bef71.71506","name":"","path":"/zoomosc/user/handRaised","metadata":false,"x":590,"y":600,"wires":[["6bbfd898.2f9bb8","145d4a94.e33d0d","69dcaeb7.533b18","6f5c9442.6cacdc","298c5731.c32f38"]]},{"id":"b0513cdf.887648","type":"udp in","z":"af3bef71.71506","name":"","iface":"","port":"1234","ipv":"udp4","multicast":"false","group":"","datatype":"buffer","x":360,"y":600,"wires":[["487c1468.e6201c"]]},{"id":"298c5731.c32f38","type":"debug","z":"af3bef71.71506","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"topic","targetType":"msg","statusVal":"","statusType":"auto","x":1060,"y":540,"wires":[]},{"id":"5d19fba.84f3184","type":"function","z":"af3bef71.71506","name":"Array to JSON","func":"var NOME,MESS,ORA; // declar the variables\n\n\n \n \n//get your data out of the previous array\nNOME = msg.payload[1];\nMESS = msg.payload[4];\n\n// create the JSON object for the table node.\nmsg.payload = ([{\"NOME\":NOME,\"MESSAGGIO\":MESS}])\n\nreturn msg\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":940,"y":880,"wires":[["2fa8d291.bb63ce"]]},{"id":"80eb780b.6ad2a8","type":"function","z":"af3bef71.71506","name":"","func":"var newMsg = { payload: msg.payload.NOME };\nreturn newMsg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":840,"y":580,"wires":[["56895fcf.262508"]]},{"id":"145d4a94.e33d0d","type":"switch","z":"af3bef71.71506","name":"Chat","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"/zoomosc/user/chat","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":720,"wires":[["1945eb34.1dea3d","5d19fba.84f3184"]]},{"id":"69dcaeb7.533b18","type":"switch","z":"af3bef71.71506","name":"Mano Alzata","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"/zoomosc/user/handRaised","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":800,"wires":[[]]},{"id":"6f5c9442.6cacdc","type":"switch","z":"af3bef71.71506","name":"Mano Abbassata","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"/zoomosc/user/handLowered","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":710,"y":860,"wires":[[]]},{"id":"2fa8d291.bb63ce","type":"ui_table","z":"af3bef71.71506","group":"873ff8c.1cc0188","name":"","order":1,"width":"20","height":"21","columns":[{"field":"NOME","title":"NOME","width":"300","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"MESSAGGIO","title":"MESSAGGIO","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}}],"outputs":1,"cts":true,"x":1110,"y":840,"wires":[["80eb780b.6ad2a8","298c5731.c32f38"]],"info":"addRow\n"},{"id":"1945eb34.1dea3d","type":"function","z":"af3bef71.71506","name":"","func":"msg.payload={\n command:\"addRow\"\n} \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1080,"y":1000,"wires":[["2fa8d291.bb63ce"]]},{"id":"3081e00.de0baa","type":"inject","z":"af3bef71.71506","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":800,"y":1020,"wires":[["1945eb34.1dea3d"]]},{"id":"bae91be6.23cdf8","type":"ui_group","name":"Default","tab":"ecd17edf.857a08","order":1,"disp":true,"width":"6","collapse":false},{"id":"873ff8c.1cc0188","type":"ui_group","name":"Chat","tab":"ecd17edf.857a08","order":2,"disp":true,"width":20,"collapse":false},{"id":"ecd17edf.857a08","type":"ui_tab","name":"Nomi","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 March 2021 10:44 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/4 "2021-03-27T10:44:09Z")

</div>

can you make a small example flow (without any 'contrib' nodes) demonstraiting the issue?  
that will make it much easier for someone else to help ou out.

---

<div class="post-metadata">

**Author:** ![simonecrevatin](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@simonecrevatin](https://discourse.nodered.org/u/simonecrevatin)\
**Post date:** [27 March 2021 12:33 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/5 "2021-03-27T12:33:04Z")

</div>

Thanks everyone I solved.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 March 2021 13:35 UTC](https://discourse.nodered.org/t/ui-table-problem-with-row/43268/6 "2021-03-27T13:35:03Z")

</div>

Great! Could you provide your solution for anyone else that might have the same problem in the future?
