# Get all values from dashboard elements at once

**URL:** <https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450>\
**Category:** Dashboard\
**Created:** [21 July 2020 08:42 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450 "2020-07-21T08:42:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [21 July 2020 08:42 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/1 "2020-07-21T08:42:18Z")

</div>

Hello every one, i am new to node-red, i am trying to get a msg.payload with all dashboard elements values. In particular i have four sliders, once i set one of them to some value i would like to print in debug all four sliders values. My flow :

```auto
[{"id":"f192ad43.71313","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"51f126d1.9b4d88","type":"ui_slider","z":"f192ad43.71313","name":"","label":"Fan North Upper","tooltip":"","group":"91c81e9d.3aea8","order":2,"width":"0","height":"0","passthru":true,"outs":"end","topic":"gid_1_fnu","min":0,"max":"100","step":"10","x":150,"y":60,"wires":[[]]},{"id":"830eec47.5760f","type":"ui_slider","z":"f192ad43.71313","name":"","label":"Fan North Lower","tooltip":"","group":"91c81e9d.3aea8","order":3,"width":0,"height":0,"passthru":false,"outs":"end","topic":"gid_1_fnl","min":0,"max":"100","step":"10","x":150,"y":100,"wires":[[]]},{"id":"818164a7.7c0d68","type":"ui_slider","z":"f192ad43.71313","name":"","label":"Fan South Upper","tooltip":"","group":"91c81e9d.3aea8","order":4,"width":0,"height":0,"passthru":false,"outs":"end","topic":"{gid:1}","min":0,"max":"100","step":"10","x":150,"y":140,"wires":[[]]},{"id":"34c0f46d.6a3adc","type":"ui_slider","z":"f192ad43.71313","name":"","label":"Fan South Lower","tooltip":"","group":"91c81e9d.3aea8","order":5,"width":0,"height":0,"passthru":false,"outs":"end","topic":"{gid:1}","min":0,"max":"100","step":"10","x":150,"y":180,"wires":[[]]},{"id":"91c81e9d.3aea8","type":"ui_group","z":"","name":"Gamlon 1","tab":"faac9adb.2b2198","order":1,"disp":true,"width":"8","collapse":false},{"id":"faac9adb.2b2198","type":"ui_tab","z":"","name":"Power Control","icon":"dashboard","disabled":false,"hidden":false}]

```

Thanks very much for help.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 July 2020 10:10 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/2 "2020-07-21T10:10:07Z")

</div>

Not checked your flow but Dashboard doesn't really work that way. Each element is separate.

So the way to do this is to save each output in a variable and then whenever any of them change, grab all of the variables and process accordingly.

---

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [21 July 2020 10:40 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/3 "2020-07-21T10:40:51Z")

</div>

I understand, thank you very much.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 July 2020 11:22 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/4 "2020-07-21T11:22:48Z")

</div>

The join node set into manual mode - to create key/value object - and send after 4 messages and then every subsequent message. Each slider needs to be set to a different topic.

---

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [21 July 2020 11:39 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/5 "2020-07-21T11:39:23Z")

</div>

Yes, but "join" node waits for all connected nodes to inject. (i tried it), thanks.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 July 2020 12:34 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/6 "2020-07-21T12:34:30Z")

</div>

no it doesn't - can set to send after just one if you want.

---

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [21 July 2020 12:38 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/7 "2020-07-21T12:38:38Z")

</div>

Oh really? how should i configure it?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 July 2020 12:44 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/8 "2020-07-21T12:44:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e3d825ada260b77882098555759733ae85efa482.png)

---

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [21 July 2020 13:15 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/9 "2020-07-21T13:15:01Z")

</div>

Thanks, i tried it, it works partially, i still need to slid each one to get a complete payload of four of them - once its done, each time i move one i get the history of previously slid sliders.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 July 2020 17:14 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/10 "2020-07-21T17:14:28Z")

</div>

I think that is just interpretation. When you move one you get plus the values of the other 3. They haven’t moved so they will be old values until you change them. Not sure what else you could expect.

---

<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:** [21 July 2020 20:41 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/11 "2020-07-21T20:41:50Z")

</div>

If you use an inject node or nodes to send initial values for all the sliders into the Join node (and into the sliders if necessary) then you won't need to move all the sliders before getting the first message out.

---

<div class="post-metadata">

**Author:** ![udusa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/udusa/32/26151_2.png) [@udusa](https://discourse.nodered.org/u/udusa)\
**Post date:** [22 July 2020 04:43 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/12 "2020-07-22T04:43:34Z")

</div>

Thanks for the reply, unfortunately using inject nodes here isn't an option.

---

<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:** [22 July 2020 05:49 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/13 "2020-07-22T05:49:04Z")

</div>

Why not? It is only for initialisation. Set them to inject once on startup with whatever initial setting you want for each slider.

---

<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:** [5 August 2020 05:49 UTC](https://discourse.nodered.org/t/get-all-values-from-dashboard-elements-at-once/30450/14 "2020-08-05T05:49:09Z")

</div>

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