# Msg.payload from multiple nodes to ui\_template

**URL:** https://discourse.nodered.org/t/msg-payload-from-multiple-nodes-to-ui-template/3862
**Category:** Dashboard
**Created:** [10 October 2018 15:38 UTC](https://discourse.nodered.org/t/msg-payload-from-multiple-nodes-to-ui-template/3862 "2018-10-10T15:38:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ryanjohnson00](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryanjohnson00/32/2956_2.png) [@ryanjohnson00](https://discourse.nodered.org/u/ryanjohnson00)
#### Post date: [10 October 2018 15:38 UTC](https://discourse.nodered.org/t/msg-payload-from-multiple-nodes-to-ui-template/3862/1 "2018-10-10T15:38:49Z")

</div>

I have multiple function nodes that I would like to send each msg.payload to the ui\_template so it displays all data at once. Is that possible?

My ui\_template is a table. I am trying to display the data from the different function nodes in its own column in the ui\_template. Reading other threads it looks like I cannot use the flow.set and flow.get. Any other option?

---

<div class="post-metadata">

### Author: ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)
#### Post date: [10 October 2018 15:47 UTC](https://discourse.nodered.org/t/msg-payload-from-multiple-nodes-to-ui-template/3862/2 "2018-10-10T15:47:13Z")

</div>

Well, _something_ needs to aggregate the multiple msg payloads -- just wiring 2 functions into one template will not accomplish that automatically (darn it).

You can use a `join` node set to manual mode, if you know how many msgs are needed and each can have its own topic. The disadvantage is that you may need to wait for all functions to output their part of the data before displaying it (depending on your use case).

Or, you can have the `ui_template` code take each incoming msg and "map" it to a different dom element (more dynamic, but typically a bit harder to write). Since the dashboard uses both jQuery and Angular v1 libs, either of those can be used to find and update dom elements with the incoming partial data.

---

<div class="post-metadata">

### Author: ![ryanjohnson00](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryanjohnson00/32/2956_2.png) [@ryanjohnson00](https://discourse.nodered.org/u/ryanjohnson00)
#### Post date: [10 October 2018 16:12 UTC](https://discourse.nodered.org/t/msg-payload-from-multiple-nodes-to-ui-template/3862/3 "2018-10-10T16:12:23Z")

</div>

Thanks Shrickus, I will look into the join first and see if that solves it for me.
