PDA

View Full Version : How to load 2 form panels with same datasource



wshpoon
3 Mar 2010, 11:15 AM
Right now I have to do a load for each formpanel. Since I already have the data, how can I just populate the forms? I don't think formpanel allows store: or ds:. I don't like to do this because it requires multiple queries to the database.

Thanks

wshpoon
3 Mar 2010, 11:40 AM
Thanks for Condor.


store.on('load', function(){
var record = store.getAt(0);
formPanel1.getForm().loadRecord(record);
formPanel2.getForm().loadRecord(record);
formPanel3.getForm().loadRecord(record);
});