# Separate a value from an object, capture information

**URL:** <https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225>\
**Category:** General\
**Tags:** function-node\
**Created:** [1 September 2022 18:10 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225 "2022-09-01T18:10:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejoldu94](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Alejoldu94](https://discourse.nodered.org/u/Alejoldu94)\
**Post date:** [1 September 2022 18:10 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/1 "2022-09-01T18:10:06Z")

</div>

I need to separate, or capture the value of the object, which I got from the database, I have no idea how to do it, any idea or programming code.  
i want to publish on a dashboard this value. in a gauge indicator

![gggggg](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f0ee6790d94de6d95d59e112c9686221eb478600.png)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [1 September 2022 18:34 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/2 "2022-09-01T18:34:02Z")

</div>

Try and follow these instructions -

> [@How do I access property in nested object?](https://discourse.nodered.org/t/how-do-i-access-property-in-nested-object/52007/2):
>
> There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.
> 
> Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.
> 
> ![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)
> 
> [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<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:** [1 September 2022 19:43 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/3 "2022-09-01T19:43:25Z")

</div>

Once you have worked out the path to the value you want then if you read the help text for the gauge node you will see that you can tell it where to get the value from. So in the Value Format field you should be able to put something like  
`{{msg.payload.pesoreal}}`

**[Edit]** Added the `{{ }}` around the above as I had missed them off originally.

---

<div class="post-metadata">

**Author:** ![Alejoldu94](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Alejoldu94](https://discourse.nodered.org/u/Alejoldu94)\
**Post date:** [1 September 2022 23:00 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/4 "2022-09-01T23:00:02Z")

</div>

Thank you, i really apreciate your help, it was ver usefull

---

<div class="post-metadata">

**Author:** ![Alejoldu94](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@Alejoldu94](https://discourse.nodered.org/u/Alejoldu94)\
**Post date:** [1 September 2022 23:00 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/5 "2022-09-01T23:00:14Z")

</div>

Thank you, i really apreciate your help, it was ver usefull, this one was my solution.

---

<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 September 2022 23:00 UTC](https://discourse.nodered.org/t/separate-a-value-from-an-object-capture-information/67225/6 "2022-09-15T23:00:58Z")

</div>

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