# Problema con un flow

**URL:** <https://discourse.nodered.org/t/problema-con-un-flow/59067>\
**Category:** General\
**Created:** [27 February 2022 14:35 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067 "2022-02-27T14:35:55Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [3 March 2022 15:34 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/21 "2022-03-03T15:34:52Z")

</div>

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

mayse so is more clear

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [11 March 2022 11:01 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/22 "2022-03-11T11:01:41Z")

</div>

That looks like msg.payload.value[0] to me.

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [11 March 2022 11:02 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/23 "2022-03-11T11:02:34Z")

</div>

In that second example, Impostata looks like an array. If that is the case, you have to select a single value from that array.

---

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [11 March 2022 12:15 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/24 "2022-03-11T12:15:21Z")

</div>

i done so : return {payload : msg.payload.value[0]}; and i had the value correct to return tx , i have the last question how i can do setpoint value + incremento value cose i want send to s7 the result into a variabile of plc .and reset the value to 0 after sended i dont know if is possible ? my regards for the help

---

<div class="post-metadata">

**Author:** ![ivanpesenti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpesenti/32/85813_2.png) [@ivanpesenti](https://discourse.nodered.org/u/ivanpesenti)\
**Post date:** [11 March 2022 15:51 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/25 "2022-03-11T15:51:13Z")

</div>

11/3/2022, 16:48:33[node: 54b94ff099b2509f](http://127.0.0.1:1880/#)msg : Object

object

topic: ""

name: "pippo"

\_messageId: "f757f1d4-8ad5-4eb4-9fc1-964b10589634"

\_endpointId: "40010"

\_confId: "f53984de399d4e5b"

command: "AdjustBrightness"

extraInfo: object

payload: -2

acknowledge: true

\_msgid: "49e9a160a7d9bf8f"

how i can see in dashboard this value ? -2 with a function ?

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [16 March 2022 07:17 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/26 "2022-03-16T07:17:53Z")

</div>

Not possible to do it within a function, you should use either a Dashboard text node, or a UIBuilder template.

Simplest way is to install the Dashboard nodes if you haven't yet, and take a text node. Check the documentation and the website, there are a lot of examples.

---

<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:** [15 May 2022 07:18 UTC](https://discourse.nodered.org/t/problema-con-un-flow/59067/27 "2022-05-15T07:18:23Z")

</div>

Closed on 15 May 2022 07:18 UTC

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

[Previous page](https://discourse.nodered.org/t/problema-con-un-flow/59067.md?page=1)
