Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked June 11th 2010 by Thomas Shurrock
  • android
  • options
0 Comments

2 Answers

  • Not quite sure what you mean. Can you re-phrase? Or maybe post a quick mockup?

    — answered June 11th 2010 by Matt Collinge
    permalink
    0 Comments
  • 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

    — answered June 11th 2010 by Thomas Shurrock
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.