Results 1 to 10 of 10

Thread: store.sync doesn't work properly

    You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    37
    Vote Rating
    1
      0  

    Default store.sync doesn't work properly

    it stops to synchronize after having "idProperty: 'not_id'" in the model. It means either store.sync has bug or you need to remove idProperty from model's config and tell the people the only id which proxy understands is 'id'.

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

    Default

    Is this using the localstorage proxy?
    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
    37
    Vote Rating
    1
      0  

    Default

    yes

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

    Default

    There is already an open bug about (internally submitted by myself) for syncing when you define your own id.
    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

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

    Default

    it will be fixed in next release?

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

    Default

    It's marked to be but still open.
    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

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

    Default

    Just posting the ticket number for reference: TOUCH-2666
    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

  8. #8
    Sencha User
    Join Date
    Jan 2011
    Posts
    14
    Vote Rating
    0
      0  

    Default

    As a work around to anyone else having this problem.

    Code:
    recordItem = store.add({       
         id: 1,
         data: "this is the data"
     })[0];
     recordItem.phantom = true;
     store.sync();

  9. #9
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default This code has a problem.

    jlwarren1, unfortunately this code causes a problem.
    If you add a record to the local storage like your code, the local storage will change the record's id.

    Code:
    recordItem = store.add({       
         id: 5,
         data: "this is the data"
     })[0];
    recordItem.phantom = true;
    store.sync();
    console.debug("record id: ' + recordItem.getId());    // record id : 1

    Quote Originally Posted by jlwarren1 View Post
    As a work around to anyone else having this problem.

    Code:
    recordItem = store.add({       
         id: 1,
         data: "this is the data"
     })[0];
     recordItem.phantom = true;
     store.sync();

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Is this still open more than a year later!?!?!?! I'm having the exact same problem, and I can't believe it's not fixed yet.

Posting Permissions

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