Page 1 of 2
Dynamically build select options
Posted: Fri Oct 05, 2012 12:43 pm
by Barbara
I need to build select options dynamically from a rest service. Not having much luck.
I read the doc on 'Building a dynamic drop down list' this isn't quite the same, is this the approach I should use or is there a another approach.
I also saw that you can map the rest data to a select, but it looks like you need to know how many options there will be, which I don't.
Dynamically build select options
Posted: Fri Oct 05, 2012 1:20 pm
by maxkatz
You can map the component to a service in a standard way: http://help.tiggzi.com/documentation/...
You don't need to know ahead of time how many items you are going to have.
Dynamically build select options
Posted: Fri Oct 05, 2012 1:49 pm
by Maryna Brodina
Drag and drop Select menu component, Input field, button which invokes the service. Here is an example of mapping (for Twitter search)
Here is an example of App http://project.tiggzi.com/mobile-fram...
Dynamically build select options
Posted: Sat Oct 06, 2012 4:48 am
by Barbara
Got that working - thanks.
Is there a way to add a placeholder like they show here
http://jquerymobile.com/demos/1.0a4.1...
Dynamically build select options
Posted: Sat Oct 06, 2012 8:13 pm
by maxkatz
If you are building it from a REST service, you should have one entry that has now value attribute:
[quote:]
An option with no value attribute (or an empty value attribute)
[/quote]
Dynamically build select options
Posted: Mon Dec 10, 2012 1:35 am
by yaip
I don't see the selectmenuitem, thus the label I can map to
Dynamically build select options
Posted: Mon Dec 10, 2012 1:36 am
by yaip
I don't see the selectmenuitem, thus the label I can map to
Dynamically build select options
Posted: Mon Dec 10, 2012 2:53 am
by maxkatz
Will be fixed on Tuesday.
Dynamically build select options
Posted: Thu Dec 13, 2012 12:03 am
by yaip
Dynamically build select options
Posted: Thu Dec 13, 2012 12:06 am
by maxkatz