Options Populated by database
Hey guys,
i was wondering if anyone knew how to populate a option with an array, much like how a table works,so with a ID and a title, so i can create a new window on the back of the option being selected.
2 Answers
-
Not quite sure what you mean. Can you re-phrase? Or maybe post a quick mockup?
-
Right sorry,
var dialog = Titanium.UI.createOptionDialog({ options:['Option 1', 'Option 2', 'Option 3'], destructive:2, cancel:1, title:'I am a title' });
in this code, where the options are ie option1 option2 etc, can these be populated by a database, much like how to populate a table from a database, if so, can you also give each one another attribute that the user doesnt see, so i could then reload the page with different criteria