Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Whats the replacement for Store.getModifiedRecords()?

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Munich (Bavaria/Germany)
    Posts
    291

    Default Whats the replacement for Store.getModifiedRecords()?

    Its all been said in the title ....

    I cant find a way in ExtJS 4 how to get the modified records from a store.
    Checkout Apollo, an ExtJS4-based Apache Cassandra client: http://www.codefreun.de/en/apollo-en

  2. #2

  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    Munich (Bavaria/Germany)
    Posts
    291

    Default

    I already found this, but its always length=0, no matter how many cells Ive changed.
    Checkout Apollo, an ExtJS4-based Apache Cassandra client: http://www.codefreun.de/en/apollo-en

  4. #4
    Sencha User pdesmet's Avatar
    Join Date
    Mar 2011
    Location
    belgium
    Posts
    45

    Default

    How do you save your data?

  5. #5
    Sencha User
    Join Date
    Dec 2008
    Location
    Munich (Bavaria/Germany)
    Posts
    291

    Default

    Its before saving, I just need to get the modified records from my store (like in ExtJS 3.X).
    Checkout Apollo, an ExtJS4-based Apache Cassandra client: http://www.codefreun.de/en/apollo-en

  6. #6
    Ext JS Premium Member
    Join Date
    May 2010
    Location
    Wiesbaden
    Posts
    19

    Default

    you will also need:

    http://docs.sencha.com/ext-js/4-0/#/...-getNewRecords
    and
    http://docs.sencha.com/ext-js/4-0/#/...RemovedRecords

    since getUpdatedRecords() will only provide "updated" records and not new or deleted once...

  7. #7
    Sencha User
    Join Date
    Dec 2008
    Location
    Munich (Bavaria/Germany)
    Posts
    291

    Default

    ... and I only want to have the modified ones.

    I am gonna do a little example late this evening, maybe I am missing a special config-option or something like this.
    Checkout Apollo, an ExtJS4-based Apache Cassandra client: http://www.codefreun.de/en/apollo-en

  8. #8
    Sencha User pdesmet's Avatar
    Join Date
    Mar 2011
    Location
    belgium
    Posts
    45

    Default

    I mean how do you update your record because the record has to be dirty.
    http://docs.sencha.com/ext-js/4-0/#/...property-dirty
    You can set this with: http://docs.sencha.com/ext-js/4-0/#/...ethod-setDirty

  9. #9
    Sencha User
    Join Date
    Dec 2008
    Location
    Munich (Bavaria/Germany)
    Posts
    291

    Default

    Do I have to mark the changed row in grid as dirty manually or is it done by the internally (like its documented)?
    Checkout Apollo, an ExtJS4-based Apache Cassandra client: http://www.codefreun.de/en/apollo-en

  10. #10
    Sencha User pdesmet's Avatar
    Join Date
    Mar 2011
    Location
    belgium
    Posts
    45

    Default

    I don't know how you change your store/grid so I think you have to do it manually.
    If you are using a plugin like CellEditing or RowEditing then it is done internally but I don't think this is the case because otherwise you should get the updated records.

Page 1 of 4 123 ... LastLast

Posting Permissions

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