4 Mar 2013 11:01 PM #1
Saving several forms together using Ext.direct
I have an architecture question about saving several forms together.
lets say I have a panel which contains 3 tabs inside it and each tab contains configuration parameters that the user can change.
after the user changed what he wants he clicks on the Save button and then I would like to submit all the changes to the server side.
at the end of the chain I need to submit to my java server one Object which contains 3 other objects that represent the data of each tab (1 object for tab).
what is the correct way to do this with Ext.Direct?
6 Mar 2013 11:10 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The good thing about Direct is if you execute multiple direct functions within a certain amount of time it will batch the requests into one and then separate it server side.
If you don't want to do the splitting server side and just want to hit one direct function then you will just need to get the values from each form and then execute a direct function manually passing the object.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
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. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.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.