20 Jan 2012 7:39 AM #1
ST2 GA release - storing associated models
I keep reading that localstorage will be fixed before the general availability (GA) release, but I haven't heard anything from the ST team about automatically storing associated model data. Is this in the plan or what?
Despite the broken localstorage in PR3, I have it working now (child models only), but it involves an onLoad handler on the main store that iterates through the parent records, saving any child models into another store (if they exist). It's ugly (even by my low standards), and I would appreciate an example of "the right way", or at least a commitment from the ST team to support saving associated models in an upcoming (soon please) GA release.
In any case, keep up the good work. After a year of tinkering including 2 complete refactors (for MVC, then for ST2) I'm still excited to build a version of Discasaurus (http://www.discasaurus.com/blog/iphone-app-walkthrough) using Sencha Touch.
20 Jan 2012 7:41 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I have pushed this up so we can look into making this easier.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.
20 Jan 2012 8:52 AM #3
Indeed that is in the works. I'm not sure if it will make it into PR4, but it is planned for the beta release.