17 Feb 2012 4:01 AM #1
Unanswered: TreePanel / TreeStore insert new item and sync with datastore missing AUTO_INC value
I have a TreePanel with a TreeStore that uses JSON to read and write data. This works fine, calling sync issues the request to my server. There is on issue I can not resolve: when adding an item to the treepanel and the JSON call to the server returns the assigned unique ID of the record, which also should go to the node in the TreePanel/TreeStore this neither of both are updated!
This setup works fine with the DataStore but not with the TreeStore. I can nowhere find an example or any hint how to solve this.
Thanks for any help, Remy
17 Feb 2012 4:57 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
To be honest I'm surprised you don't get errors with sync on a treestore.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 firstname.lastname@example.org
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.
17 Feb 2012 5:05 AM #3
Hm, sync() is a method of treestore in ExtJS 4 - why should I get an error?