PDA

View Full Version : TreePanel / TreeStore insert new item and sync with datastore missing AUTO_INC value



remyg
17 Feb 2012, 4:01 AM
Hi,

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

mitchellsimoens
17 Feb 2012, 4:57 AM
To be honest I'm surprised you don't get errors with sync on a treestore.

remyg
17 Feb 2012, 5:05 AM
Hm, sync() is a method of treestore in ExtJS 4 - why should I get an error?

Thanks, R.