Results 1 to 2 of 2

Thread: How to load 2 form panels with same datasource

  1. #1
    Sencha User wshpoon's Avatar
    Join Date
    Jan 2009
    Location
    Boca Raton, FL
    Posts
    20

    Default How to load 2 form panels with same datasource

    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

  2. #2
    Sencha User wshpoon's Avatar
    Join Date
    Jan 2009
    Location
    Boca Raton, FL
    Posts
    20

    Default SOLVED:

    Thanks for Condor.


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

Posting Permissions

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