13 Feb 2012 7:10 AM #1
[4.1 b2] how to tell load which associations to fetch
There seems to be no attribute for the load method that will be passed to the server to tell it which associations should be included in the response.
I'm posting this here because I've skipped ExtJS 4.0 and start migrating our app from 3.4 to 4.1.
Please move it to another forum if not appropriate here.
13 Feb 2012 7:18 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Each record gets a get method that will return the associated data. If this is not loaded then it will fire off an Ajax call. So there is nothing to the original store to load what associations.Mitchell Simoens @LikelyMitch
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.
14 Feb 2012 7:20 AM #3
The whole benefit of associations is to load them nested in one call to the server, there is even an example for it in the docs but no way to tell which associations to include in the response.