1. #11
    Sencha User
    Join Date
    Sep 2012
    Posts
    29
    Vote Rating
    0
    cassiopeia is on a distinguished road

      0  

    Default


    i'll have to correct myself.

    i really believe there is a bug when you post a request with
    Code:
    this.add(entry) ;
    this.sync() ;
    the delete method in the same session doesn't work because of a phantom record.
    because the save() on a record doesn't add this record to the store, only to SAP.
    so manually adding the record to the store and then deleting it wont work

  2. #12
    Ext Premium User
    Join Date
    Mar 2007
    Posts
    89
    Vote Rating
    1
    Answers
    2
    Luc is on a distinguished road

      0  

    Default


    Hi,

    I tried adding a new record to a store and then sync(). I check the phantom property before and after the sync, and it was (as expected), before: true, after: false.

    Perhaps you can post a basic test example, where deleting from the store fails. If I can reproduce, I might be able to help you to nail this issue.

  3. #13
    Sencha User
    Join Date
    Sep 2012
    Posts
    29
    Vote Rating
    0
    cassiopeia is on a distinguished road

      0  

    Default


    after every create, i'm just going to reload the store.
    this way, all the data is correct and delete works.
    it's not the most optimal solution, but it works =)

Thread Participants: 2

Tags for this Thread