# Data into dropdown

**URL:** <https://discourse.nodered.org/t/data-into-dropdown/63522>\
**Category:** General\
**Created:** [6 June 2022 15:48 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522 "2022-06-06T15:48:35Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![alexback](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alexback](https://discourse.nodered.org/u/alexback)\
**Post date:** [6 June 2022 19:36 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/30 "2022-06-06T19:36:38Z")

</div>

It didn't work .. np thank u anyways for ur help and ur time I really really appreciate it without u I couldn't get it to where it is now

---

<div class="post-metadata">

**Author:** ![alexback](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alexback](https://discourse.nodered.org/u/alexback)\
**Post date:** [6 June 2022 20:57 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/32 "2022-06-06T20:57:03Z")

</div>

there isn't another solution to automatically update the dropdown?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [6 June 2022 21:18 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/33 "2022-06-06T21:18:49Z")

</div>

not with out querying the db, So I still require a debug output from the db node. set it to the complete message object in the debug node. copy the full msg object and paste here.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [6 June 2022 22:05 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/34 "2022-06-06T22:05:48Z")

</div>

Alexback,

I think what @E1cid is saying is that we need to see a small flow from you that does a query of your mongoDb and then shows the data that is returned from that query into NR.

Once he has this he can show you what needs to be modified in his example flow to enable you to take that data you have returned from Mongo and put it dynamically into the dropdown.

Craig

---

<div class="post-metadata">

**Author:** ![alexback](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alexback](https://discourse.nodered.org/u/alexback)\
**Post date:** [7 June 2022 20:00 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/35 "2022-06-07T20:00:11Z")

</div>

I didn't understand what are you saking me to do .. I already paste the flow with which I read data from mongo and the result in debug

---

<div class="post-metadata">

**Author:** ![alexback](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alexback](https://discourse.nodered.org/u/alexback)\
**Post date:** [7 June 2022 20:02 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/36 "2022-06-07T20:02:42Z")

</div>

I already past the flow which I read data from mongo and the results. isn't what you mean?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [7 June 2022 22:20 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/37 "2022-06-07T22:20:22Z")

</div>

The problem is we do not have a MongoDb to run your flow against - so we need to see in the debug window a simple flow that runs and then outputs the information to the debug window so we can see the result

After your query - put a debug node - give it a reasonable name and make sure you tell it to display the full message object - not just message payload

Craig

---

<div class="post-metadata">

**Author:** ![alexback](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@alexback](https://discourse.nodered.org/u/alexback)\
**Post date:** [9 June 2022 14:04 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/39 "2022-06-09T14:04:57Z")

</div>

```auto
{"_id":"62a1fb8a37d96245a41965dc","name":"marie","age":"5"}

```

is that what you mean?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 June 2022 01:37 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/40 "2022-06-10T01:37:26Z")

</div>

nope - run that query against your Mongo DB, then attach a debug node to the output of that and show us what shows up in the debug window (a screenshot of it)

Craig

---

<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:** [9 August 2022 01:37 UTC](https://discourse.nodered.org/t/data-into-dropdown/63522/41 "2022-08-09T01:37:53Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/data-into-dropdown/63522.md?page=1)
