Results 1 to 3 of 3

Thread: TreePanel / TreeStore insert new item and sync with datastore missing AUTO_INC value

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default TreePanel / TreeStore insert new item and sync with datastore missing AUTO_INC value

    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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    To be honest I'm surprised you don't get errors with sync on a treestore.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Hm, sync() is a method of treestore in ExtJS 4 - why should I get an error?

    Thanks, R.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •