View Full Version : how to load data into a form

16 May 2012, 2:04 AM
how to load data into a form connected with a store
on what event i have to call strore.load() or does it do this automatically?
how to procede?

16 May 2012, 2:25 AM
you can use a formPanel.getForm().loadRecord(record). When you're using a store then you may probably have more then one record of a model? If you want to connect a form to a store via the selectionModel of a grid, then you should look up the form examples...

If your store contains only one record - then you can call the above code in the callback function of store's load function. But you may try using a model's load function then instead of a store.

you can also update the form data after editing the fields of a form - look at the BasicForm class in the api.