api/extjs/browser-part/e-br-actions.js
function findRecordIds(store, rowData) {

      var internalIds = [];

      store.each(function (m) {
        for (var i = 0; i < rowData.length; i++) {
          var item = rowData[i];
          var dataIndex = item[0];
          var value = item[1];
          var fieldValue = m.get(dataIndex);
          if (fieldValue !== value) {
            return true; // To next record.
          }
        }
        internalIds.push(m.internalId);
        return true;
      });

      if (!internalIds.length) {
        throw new Error('Record not found for ' + JSON.stringify(rowData));
      }

      return internalIds;
    }
function findRecordIds(store, rowData) {

      var internalIds = [];

      store.each(function (m) {
        for (var i = 0; i < rowData.length; i++) {
          var item = rowData[i];
          var dataIndex = item[0];
          var value = item[1];
          var fieldValue = m.get(dataIndex);
          if (fieldValue !== value) {
            return true; // To next record.
          }
        }
        internalIds.push(m.internalId);
        return true;
      });

      if (!internalIds.length) {
        throw new Error('Record not found for ' + JSON.stringify(rowData));
      }

      return internalIds;
    }
function findRecordIds ( store , rowData ) { var internalIds = [ ] ; store . each ( function ( m ) { for ( var i = 0 ; i < rowData . length ; i ++ ) { var item = rowData [ i ] ; var dataIndex = item [ 0 ] ; var value = item [ 1 ] ; var fieldValue = m . get ( dataIndex ) ; if ( fieldValue !== value ) { return true ; // To next record. } } internalIds . push ( m . internalId ) ; return true ; } ) ; if ( ! internalIds . length ) { throw new Error ( 'Record not found for ' + JSON . stringify ( rowData ) ) ; } return internalIds ; }
Finds record internalId's.
@param {Ext.data.Store} store
@param {Object} rowData [[dataIndex, value], [dataIndex, value]]
@return {number[]}
Finds record internalId s .