PDA

View Full Version : Using query/queryBy on filtered stores



AmandaK
25 Jul 2012, 12:06 PM
I have an Ext.data.Store that may or may not have filters applied on it. I want to retrieve a MixedCollection of records using the Ext.data.Store.query or queryBy methods, but these methods ignore any filters that are applied to the Store, so I'm getting back more records than I want. Ext.data.Store.find respects the filters, but I can't use that because it only returns the first match, and I want all matches. Is there a method that works like query but respects the filters?

scottmartin
25 Jul 2012, 2:28 PM
You could use on of the following to search through the store ... and build your own map.



store.findBy(function(){ .. })
store.each(function(){ .. });


This is basically what query does, but uses entire store.

Scott.