Dan Gagliardi
Posts: 0
Joined: Tue Apr 23, 2013 8:02 pm

Build SELECT Label from multiple attributes from REST service

I have a REST service from an appery collection, collection1, attrib1, attrib2

I used the ui editor to populate the label of the Select control with attrib1. What I would like to do is create the list of select option labels as attrib1 +":" + attrib2

How can I do this in the editor?

Thanks
D

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Build SELECT Label from multiple attributes from REST service

Hi Dan,

Appery doesn't allow you to merge fields in mapping. To create such Label for Select Menu options, you would need to use JavaScript.

In Rest service Data tab add "Run JavaScript" action on "Success" event. In this JavaScript you can use variable "data" that stores service response data.Using JavaScript, you should create items with needed values and then add them to Select component.

Return to “Issues”