View Full Version : what's the best way to load data into form fields?

14 Nov 2014, 3:29 AM

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?


Mark Wagoner
14 Nov 2014, 4:50 AM
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()