# Read and set .flow or .global typed input correctly

**URL:** https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694
**Category:** Developing Nodes
**Created:** [25 October 2021 09:22 UTC](https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694 "2021-10-25T09:22:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [25 October 2021 09:22 UTC](https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694/1 "2021-10-25T09:22:08Z")

</div>

Hi

I use a typed input to let the user chose a context store:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d73200c3986011df74377a6d64d4fa8c34b664f7.png)

I then get this as the value of the input:

```auto
#:(file)::myNode

```

Strange format to me but ok (any background info?).

But how can I set the typed input to that state - **context and store**? This is my result so far, not what I expect:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/ed584f91d9cf2b0f0a966691b74de345e28087ca.png)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 October 2021 10:21 UTC](https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694/2 "2021-10-25T10:21:36Z")

</div>

This is a bug in 2.1.1... fixed in 2.1.2

It has always used the 'strange' `#:...` syntax to encode the context store name into the property. But a bug in 2.1.0/1 meant it exposed it to the end user rather than keep it a hidden internal detail.

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [25 October 2021 11:18 UTC](https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694/3 "2021-10-25T11:18:21Z")

</div>

Hi Nick, thank you for the fast reply.

I'm currently using 2.0.5. The 'bug' then could be older.

So the intended behavior is that

```auto
input.typedInput('value','#:(file)::myNode');

```

should result into this

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

And voila, after updating to 2.1.2 it works as intended!  
**Thank you for pointing me in to the right direction.**

Chris

---

<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: [8 November 2021 11:18 UTC](https://discourse.nodered.org/t/read-and-set-flow-or-global-typed-input-correctly/52694/4 "2021-11-08T11:18:56Z")

</div>

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