PDA

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



marxan
14 Nov 2014, 3:29 AM
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

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()