Mac Strait
Posts: 0
Joined: Thu May 07, 2015 5:03 pm

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. Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Populating and mapping to the select menu component

Hello,

Please change event of action "invoke service" from "click" to "page show".

Could you check are there any errors in console? This: http://devcenter.appery.io/documentat... should help.

Mac Strait
Posts: 0
Joined: Thu May 07, 2015 5:03 pm

Populating and mapping to the select menu component

Hi,

Thanks for the swift response. Changing the invoke service to be associated with the page rather than the select component and setting the event to be page show worked perfectly!

So I take it to update the database with the users selection, I should use the click or selected service on the select component along with the appropriate REST service?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Populating and mapping to the select menu component

Invoke service on page show event.

Return to “Issues”