daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var allRecords = (store.getData().getSource() || store.getData()).getRange();
  2.    
  3. var data = store.getData();
  4. // get unfiltered collection (will be null if the store has never been filtered)
  5. var snapshot = data.getSource();
  6. // pick the one that exists
  7. var unfilteredCollection = snapshot || data;
  8. // get items in an array
  9. var allRecords = unfilteredCollection.getRange();
  10.    
  11. var allRecords = store.snapshot || store.data;
  12.    
  13. var allRecords = store
  14.   .queryBy(function() { return true; }) // returns a collection
  15.   .getRange(); // returns array of items
  16.    
  17. var allRecords = store.getData().getSource().getRange();
  18.    
  19. Ext.override(Ext.data.Store, {
  20.         getRawRecords: function(){
  21.             return Ext.Array.map(this.getData().getRange(), function(record){
  22.                 return record.data;
  23.             });
  24.         }
  25.     });
  26.    
  27. var rawData = store.getRawRecords();
  28.    
  29. var allRecs = Store.getData().getSource().items
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top