# UI Dropdown trying to allow for single entry or multiple

**URL:** <https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045>\
**Category:** Dashboard\
**Created:** [12 April 2019 03:00 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045 "2019-04-12T03:00:39Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [15 April 2019 06:29 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/21 "2019-04-15T06:29:10Z")

</div>

Why would set not work?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [15 April 2019 07:34 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/22 "2019-04-15T07:34:31Z")

</div>

[https://cookbook.nodered.org/basic/move-message-property](https://cookbook.nodered.org/basic/move-message-property)

The `Set` also works. And there is no way to tell before each actual use case which one is correct.  
Using `Move` avoids unnecessary duplicates of data. And it is given to user in one step. Comes handy if project grows as you can imagine.  
But I think the cookbook page or `Change` node info can be improved to help users understand benefit of correct usage of those commands.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 April 2019 07:39 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/23 "2019-04-15T07:39:18Z")

</div>

I’m sure a pull request would be welcome

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [15 April 2019 07:43 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/24 "2019-04-15T07:43:08Z")

</div>

With my English? No way 😃

Let's keep the topic clear for UI Dropdown issue.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 April 2019 07:43 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/25 "2019-04-15T07:43:23Z")

</div>

Meanwhile... the actual error would seem to be the extra . in the property  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a112acc951fe960c8715e90e69cc566eebed01fa.png)  
You need it as per @colin ' s post above `msg.payload[0]["COUNT( DISTINCT uuid)"]`  
if you use the [] syntax you don't use . as well.

---

<div class="post-metadata">

**Author:** ![MrDmx1024](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@MrDmx1024](https://discourse.nodered.org/u/MrDmx1024)\
**Post date:** [15 April 2019 19:22 UTC](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045/26 "2019-04-15T19:22:34Z")

</div>

> [@dceejay](#):
>
> msg.payload[0]["COUNT( DISTINCT uuid)"]

gotcha! Thank you

[Previous page](https://discourse.nodered.org/t/ui-dropdown-trying-to-allow-for-single-entry-or-multiple/10045.md?page=1)
