# Need help with Array from Payload Objects to Display in a Table

**URL:** <https://discourse.nodered.org/t/need-help-with-array-from-payload-objects-to-display-in-a-table/46117>\
**Category:** General\
**Created:** [23 May 2021 15:24 UTC](https://discourse.nodered.org/t/need-help-with-array-from-payload-objects-to-display-in-a-table/46117 "2021-05-23T15:24:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [23 May 2021 15:24 UTC](https://discourse.nodered.org/t/need-help-with-array-from-payload-objects-to-display-in-a-table/46117/1 "2021-05-23T15:24:42Z")

</div>

Good Day all,

As a relative newbie to Node Red, Arrays are something that I know of, basically how they work and generally steer clear of due to my lack of understanding...

I have (unfortunately for me) now got to the point that I need to use an array to display data on a dashboard.... (At least I think I need to use an array to display this data on a dashboard, that is.)

I have message objects coming through in the following format:

excerpt from debug pane...

```auto
2021/05/23, 16:44:57node: 59076efc.5e268
msg.payload : Object
object
Address: 2
Battery2 Voltage: 49.739
Battery2 Current: -1.561
Battery2 Tempr: 22.2
Battery2 Tlow: 19.4
Battery2 Thigh: 19.5
Battery2 Vlow: 3.315
Battery2 Vhigh: 3.316
Battery2 SOC: 98
Battery2 MosTempr: 20.2

```

Which I would like to display on a `node-red-node-ui-table` ....

"Live Data" would be nice, with cell contents updating on the fly, but is not a necessity...

The data for each battery is in exactly the same format, the only bits changing being the `Address:` and the `Battery2` prefix on each field (The `Battery2` prefix can be removed quite easily if needed, giving just the field name if the prefix complicates matters.)

This is the simplest and first of two tables that I need to create on the dashboard, the second is simply much larger (in columns and rows), but follows the same basic pattern....

If there is a better way to do this rather than using `node-red-node-ui-table` to display the data as a table, I am open to suggestions too...

Many Thanks  
Ed

---

<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:** [22 July 2021 15:25 UTC](https://discourse.nodered.org/t/need-help-with-array-from-payload-objects-to-display-in-a-table/46117/2 "2021-07-22T15:25:35Z")

</div>

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