Ext.data.Store.getFieldValue.js (451B)
1 Ext.define("PartKeepr.data.Store", { 2 override: "Ext.data.Store", 3 4 /** 5 * Retrieves a specific field from all records in the store 6 * @param field 7 * @returns {Array} 8 */ 9 getFieldValues: function (field) { 10 var i; 11 var result = []; 12 13 for (i=0;i<this.getCount();i++) { 14 console.log(this.getAt(i)); 15 result.push(this.getAt(i).get(field)); 16 } 17 18 return result; 19 } 20 });