View Full Version : Loading a form made of comboboxes and other components using one server call

26 Dec 2010, 10:35 AM
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

26 Dec 2010, 1:46 PM
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/docs/?class=Ext.form.Action.Load

For the name of your items need to match the key in the JSON.