Results 1 to 2 of 2

Thread: Loading a form made of comboboxes and other components using one server call

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    16
    Vote Rating
    0
      0  

    Default Loading a form made of comboboxes and other components using one server call

    Im running my server on an embeded lynux with very little resources and tying to keep the trips to the server to minimum.
    To load a form with over 20 comboboxes with one server call am running the following code (thanks to the great advice of Condor)

    store1.load({
    callback: function(){
    store2.loadData(store1.reader.jsonData);
    store3.loadData(store1.reader.jsonData);
    store4.loadData(store1.reader.jsonData);
    }
    });

    Now, the form acctualy contains not only comboboxes but also textfeilds and datefields. What would be the best approch , to load them all with the same call to the server using the same JSON?

    how would I go about doing that?
    or is there a better way ? ( i guese i can go to the server 2 or 3 times but it is all one form..)

    Thanks alot,
    Happy Xmas and Hanucka

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    If you have one form, it doesn't matter how many items it has, you can load it with one call. Look here: http://dev.sencha.com/deploy/dev/doc...rm.Action.Load

    For the name of your items need to match the key in the JSON.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. Updating components without XHR call
    By sancho_0 in forum Ext 3.x: Help & Discussion
    Replies: 32
    Last Post: 9 Jul 2009, 11:28 PM
  2. Loading form components
    By Trinad in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Jun 2009, 9:32 AM
  3. Form validation with form made up of multiple dynamically added tabs
    By Mat Malone in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 29 Aug 2008, 7:57 AM
  4. Loading entire tree on first server call
    By ExtCrazy in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Apr 2008, 11:46 PM

Posting Permissions

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