Results 1 to 2 of 2

Thread: what's the best way to load data into form fields?

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    216
    Answers
    4

    Default Answered: what's the best way to load data into form fields?

    Hello,

    I wonder if the way I want to do this is the best one:

    I will create a store and after having loaded it, i will do a myForm.setValue(myStore.data.field);

    Is it a right way to do it?

    Thanks

  2. You can populate all of the fields within the form at once using form.loadRecord(). You can then get all of the values back again using form.updateRecord() and form.getRecord()

  3. #2
    Sencha Premium Member
    Join Date
    Nov 2013
    Posts
    159
    Answers
    5

    Default

    You can populate all of the fields within the form at once using form.loadRecord(). You can then get all of the values back again using form.updateRecord() and form.getRecord()

Posting Permissions

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