Results 1 to 2 of 2

Thread: databinding for lists and forms

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Vote Rating

    Default databinding for lists and forms

    Hey guys, im kind of new to sencha touch 2 and i am trying to dynamically update a list and a form with data. First i want to read in a list and i want to update the UI list with everything from the data. Second when i click "details" on my list item i want to update a form that corresponds with the data from that certain list item, what is the best way to do this and do you guys have any examples? Thanks!

    Edit: i figured out how to do it for the lists anyone got any tips on the form? I dont know the syntax well but i assume i think id need something like "get view, get name? set place holder" thats my thought process but im not sure what to do .

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    use the setRecord method on the form passing in the record you want to edit. When you want to "submit" the form you simple execute the updateRecord method in the form and it will update the record which the list should reflect this change automatically.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts