8
Views
2
Comments
Solved
Is it possible to add costom list to dropdown without any entity? if yes then how?
Application Type
Reactive
Service Studio Version
11.10.2 (Build 35809)

Hello All,
I want to pass custom list to dropdown without using any kind of entity .
Is it  possible? if yes then please guide me

Rank: #70
Solution

Hi Yogesh,


Yes, it is possible.

You just have to have a variable of a type List and binded to the dropdown. In the example below, you can see I have a Structure List, and I define the label (value to display in dropdown) will be the attribute Text and the Value to be used when the user select an option will be the attribute Id:



You can use for instance the event OnReady (read more here) to populate this list with the values of your need.


See the OML in attachment.


Hope it helps.


Kind regards,
João

DropdownDemo.oml