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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1382
      0  

    Default

    To be honest I'm surprised you don't get errors with sync on a treestore.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •