Populating and mapping to the select menu component
I would like to populate the Select UI component using the REST LIST database service to give the user a list of items to choose from. Mapping $ to the UI component name displays all the items from the database. I am using an click event to trigger the mapping. The first click displays the drop down list retrieved from the database, but when the user selects an item, it is always one particular item that is shown as selected. On the second click the list disappears.
Basically I am trying to achieve a drop down menu where the user is able to select an item and the selected item is shown in the display. Note that I do not know the number of items that will appear in the drop down ahead of time.