Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Dynamically build select options

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dynamically build select options

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Dynamically build select options

Drag and drop Select menu component, Input field, button which invokes the service. Here is an example of mapping (for Twitter search)

Image

Here is an example of App http://project.tiggzi.com/mobile-fram...

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Dynamically build select options

Got that working - thanks.

Is there a way to add a placeholder like they show here

http://jquerymobile.com/demos/1.0a4.1...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dynamically build select options

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]

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Dynamically build select options

I don't see the selectmenuitem, thus the label I can map to

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Dynamically build select options

I don't see the selectmenuitem, thus the label I can map to

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dynamically build select options

Will be fixed on Tuesday.

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Dynamically build select options

is this fixed?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dynamically build select options

Yes.

Return to “Issues”