Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    19
    Vote Rating
    0
    stockhausen is on a distinguished road

      0  

    Exclamation How can I select the modificated rows of an EditorGrid?

    How can I select the modificated rows of an EditorGrid?


    Hello,

    I have create an 'EditorGrid'.



    I have modifield the last name of 'Michael Jackson' in 'Bolton'.

    Now, I would like to select all modified rows of my store e.g. rows within the service implementation.

    Code:
    public class EntriesServiceImpl extends RemoteServiceServlet implements EntriesService {
    
        private static final long serialVersionUID = 1L;
        
        @Override
        public boolean updateAllEntries(long userid) {
            
            // TODO
            // Now I would like to update the database entries. 
            // How can I find out which data have been changed?
            // How can I select the modified rows?
            // 
            // Pseudocode
            // ----------
            // for (int i=0; i<grid.size(); i++) {
            //    if (grid.rowValueIsModified) {
            //        update database ...
            //  }
            // }
            
            // Database update - Return true if everything is ok! - In this case, everthing is ok!
            return true;
        }
    }
    Simple example ( eclipse project - 300K )
    http://www.file-upload.net/download-...oject.zip.html


    Thanks,
    Michael


    p.s.: Sorry about my english!

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You probably dont want to select the rows as you are only using a CellSelectionModel. You probably only want the effected models, right?

    Code:
    grid.getStore().getMofiedRecords()
    Gives you a list of the modified records. On each record you can call getModel(); to get the actual model.

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    19
    Vote Rating
    0
    stockhausen is on a distinguished road

      0  

    Default


    Thanks a lot Sven

Thread Participants: 1