[CLOSED] Deleted records from store [1.5.0.0]

  1. #1

    [CLOSED] Deleted records from store [1.5.0.0]

    Hello everyone,

    I would like to get deleted records from store, it it possible?.

    I've a simply store linked a gridpanel. In the gridpanel there is a cancel button that delete a row through the following script:

    var store = data.store;
     store.remove(data)
    Thanks!
    Last edited by Daniil; Jan 29, 2013 at 3:47 AM. Reason: [CLOSED]
  2. #2
    Hi John,

    Deleted records are here:
    store.deleted
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi John,

    Deleted records are here:
    store.deleted
    And for added records??
    Thanks..
  4. #4
    The Store's getModifiedRecords method returns an array of new and updated records.
    http://docs.sencha.com/ext-js/3-4/#!...odifiedRecords

    To distinguish a new record from an updated one, you can check a record's phantom property.
    http://docs.sencha.com/ext-js/3-4/#!...operty-phantom

    Or call its isNew method.
  5. #5
    Quote Originally Posted by Daniil View Post
    The Store's getModifiedRecords method returns an array of new and updated records.
    http://docs.sencha.com/ext-js/3-4/#!...odifiedRecords

    To distinguish a new record from an updated one, you can check a record's phantom property.
    http://docs.sencha.com/ext-js/3-4/#!...operty-phantom

    Or call its isNew method.
    Is there a method for server-side way?
  6. #6
    No, but it can be sent as extra parameters of an AJAX request.

    Or via common GridPanel/Store saving mechanism (actually, the records are sent via extra parameters of an AJAX request).

Similar Threads

  1. Replies: 9
    Last Post: Sep 26, 2011, 12:24 PM
  2. Replies: 4
    Last Post: Jul 08, 2011, 4:23 PM
  3. Replies: 5
    Last Post: Jun 14, 2011, 11:47 AM
  4. [CLOSED] Submitting deleted records from multiple stores
    By GLD in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 08, 2011, 10:04 AM
  5. Replies: 1
    Last Post: Nov 01, 2010, 9:00 PM

Posting Permissions