Page 1 of 1

Build SELECT Label from multiple attributes from REST service

Posted: Tue Apr 23, 2013 8:02 pm
by Dan Gagliardi

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


Build SELECT Label from multiple attributes from REST service

Posted: Tue Apr 23, 2013 9:09 pm
by Kateryna Grynko

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.