api/extjs/browser-part/e-br-actions.js
function findRecords(store, fieldName, texts) {
      var records = [];
      texts.forEach(function (text) {
        var index = store.find(fieldName, text);
        if (index === -1) {
          throw new Error('Text: ' + text + ' not found for fieldName: ' + fieldName);
        }
        records.push(index);
      });
      return records;
    }
function findRecords(store, fieldName, texts) {
      var records = [];
      texts.forEach(function (text) {
        var index = store.find(fieldName, text);
        if (index === -1) {
          throw new Error('Text: ' + text + ' not found for fieldName: ' + fieldName);
        }
        records.push(index);
      });
      return records;
    }
function findRecords ( store , fieldName , texts ) { var records = [ ] ; texts . forEach ( function ( text ) { var index = store . find ( fieldName , text ) ; if ( index === - 1 ) { throw new Error ( 'Text: ' + text + ' not found for fieldName: ' + fieldName ) ; } records . push ( index ) ; } ) ; return records ; }
Records for texts for specific field.
Only the first found result is used.
@param store
@param fieldName
@param texts
@return {Array}
Records for texts for specific field . Only the first found result is used .