# Is there a way to paste a variable in "edit view" of a node?

**URL:** https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073
**Category:** General
**Tags:** editor
**Created:** [22 January 2022 23:05 UTC](https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073 "2022-01-22T23:05:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kenwebart](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kenwebart/32/54800_2.png) [@kenwebart](https://discourse.nodered.org/u/kenwebart)
#### Post date: [22 January 2022 23:05 UTC](https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073/1 "2022-01-22T23:05:35Z")

</div>

![Bildschirmfoto 2022-01-22 um 23.54.47](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a1b7347a208d50d87f17bca6bc84dbd2cde1ae27.png)

**What I'm trying to accomplish:**  
I get the string of the UUID only after a function. Is it possible to store a value in a variable and output it in the "edit view" of another node see screenshot?

**What has worked so far:**  
I could read the value of an environment variable. But unfortunately it does not help me in this case. Because I can't overwrite these variables in a function. _Or is it actually possible?_

**What would help me:**  
I can place a variable name in this input from the node edit view.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [22 January 2022 23:22 UTC](https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073/2 "2022-01-22T23:22:42Z")

</div>

Hi, welcome to the forum.

There is not enough info to go on (for me any how)...

- What node package is this node from?
  - node-red-contrib-?????

- Have you read the built in help for this node? Does it not tell you about providing the value in a `msg` property?

---

<div class="post-metadata">

### Author: ![kenwebart](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kenwebart/32/54800_2.png) [@kenwebart](https://discourse.nodered.org/u/kenwebart)
#### Post date: [23 January 2022 21:11 UTC](https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073/3 "2022-01-23T21:11:30Z")

</div>

Hi Steve-Mcl,

thank you very much for your quick reply.

- It's the "node-red-contrib-bring-shopping" package. ([Node Info](https://flows.nodered.org/node/node-red-contrib-bring-shopping))
- Unfortunately, there is no help on the node. It's the "get items" node (node-red-contrib-bring-shopping : getItems)

Here is the function for this node:  
[See Github](https://github.com/mdhom/node-red-contrib-bring-shopping/blob/main/src/bring.js)  
Starts line 82.

---

<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: [24 March 2022 21:12 UTC](https://discourse.nodered.org/t/is-there-a-way-to-paste-a-variable-in-edit-view-of-a-node/57073/4 "2022-03-24T21:12:03Z")

</div>

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