# Slider node function

**URL:** <https://discourse.nodered.org/t/slider-node-function/19336>\
**Category:** General\
**Created:** [19 December 2019 10:14 UTC](https://discourse.nodered.org/t/slider-node-function/19336 "2019-12-19T10:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [19 December 2019 10:14 UTC](https://discourse.nodered.org/t/slider-node-function/19336/1 "2019-12-19T10:14:57Z")

</div>

![slider](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b4497d3e81bd7cb0d8b2aaf406c2b1d77a729533.jpeg)

hello,  
what can i do to let the second part of the array that im creating with the function node display the slider value on the "v" part and address the hole of msg to an externale topic like "iotgateway/write"

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [19 December 2019 12:18 UTC](https://discourse.nodered.org/t/slider-node-function/19336/2 "2019-12-19T12:18:05Z")

</div>

Messages do not arrive at the same time so you will have to combine them first. Take a look a the batch node, and connect that to a join node, then into a debug node to see what happens or to your function node.

---

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [19 December 2019 12:39 UTC](https://discourse.nodered.org/t/slider-node-function/19336/3 "2019-12-19T12:39:53Z")

</div>

i used the join node first but still have the same problem, now with the fucntion i can see taht the array is already created but i cant have the slider value into "v" parts of the array

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [19 December 2019 13:01 UTC](https://discourse.nodered.org/t/slider-node-function/19336/4 "2019-12-19T13:01:14Z")

</div>

You need to combine the messages first.  
The join node requires a `parts` field, which the batch (and split) provides.

Batch + join node.

---

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [23 December 2019 12:55 UTC](https://discourse.nodered.org/t/slider-node-function/19336/5 "2019-12-23T12:55:21Z")

</div>

thanks for your help
