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
    Vote Rating

    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)

    callback: function(){

    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    If you have one form, it doesn't matter how many items it has, you can load it with one call. Look here:

    For the name of your items need to match the key in the JSON.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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

Posting Permissions

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