# MappView Items for Dropdown List

**URL:** <https://community.br-automation.com/t/mappview-items-for-dropdown-list/5097>\
**Category:** HMI & Visualization\
**Tags:** mapp-view\
**Created:** [December 3, 2024, 8:07am UTC](https://community.br-automation.com/t/mappview-items-for-dropdown-list/5097 "2024-12-03T08:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Rest](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Michael\_Rest](https://community.br-automation.com/u/Michael_Rest)\
**Post date:** [December 3, 2024, 8:07am UTC](https://community.br-automation.com/t/mappview-items-for-dropdown-list/5097/1 "2024-12-03T08:07:34Z")

</div>

Hy,  
I’m a little confused about how to generate a Dynamic Dropdownlist.

I’d prefer having an Array of String, but this seems not to work,  
as far as i found out i need to have to provide an Dictinpoary style string  
like:  
{‘value’:‘4’,‘text’:‘Member1’}

But how to provide this data / what to bind to the Dataprovider:

1. Long string “{‘value’:‘4’,‘text’:‘Member1’},{‘value’:‘4’,‘text’:‘Member1’}”
2. Array of String with single items like {‘value’:‘4’,‘text’:‘Member1’}
3. List in the Select Variable Dialouge (but here the number of items will  
be fix and i’m not able to Click Ok…

Thanks fo direct me on the right way

Servus  
Michi

---

<div class="post-metadata">

**Author:** ![tommi.piiparinen](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/tommi.piiparinen/32/2183_2.png) [@tommi.piiparinen](https://community.br-automation.com/u/tommi.piiparinen)\
**Post date:** [December 3, 2024, 9:32am UTC](https://community.br-automation.com/t/mappview-items-for-dropdown-list/5097/2 "2024-12-03T09:32:44Z")

</div>

Hi,

Your option 2 is correct. So an array of strings works, please see an example of a single items value.

```auto
'{"value":"12","text":"Item 12"}'

```

If the value for a single item is an empty string this will not be shown in the actual widget, so only options which have values will be shown.

```auto
''

```

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/7085a548c01307994bd5105138ac4eb8f7806428.png)

The above array results in the following displayed in the widget.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/79d9fbee285169204823edf6897c7fc957098272.png)

When making the binding you should select the array and its “value” property.

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/c/c43cbf217a2a4971bf7ed814de9e906e66b372a5.png)

---

<div class="post-metadata">

**Author:** ![Michael\_Rest](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@Michael\_Rest](https://community.br-automation.com/u/Michael_Rest)\
**Post date:** [December 3, 2024, 12:29pm UTC](https://community.br-automation.com/t/mappview-items-for-dropdown-list/5097/3 "2024-12-03T12:29:14Z")

</div>

Thank you,  
had an mistake with the quotings - that’s why i was stuck.
