MappView Items for Dropdown List

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

Hi,

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

'{"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.

''

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

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

1 Like

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

1 Like