1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    16
    Vote Rating
    0
    optibase is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi