In building a series of filters for a store, I am having difficulty building a filter that combines AND and OR logic. It seems the store.filter() accepts an array of Filter objects and applies then in an AND fashion (filter1 AND filter2 AND filter3...)

Can a store filter be built that mixes ANDs and ORs? I have a series of combo boxes that will be the ANDs. I also have a grid panel with multi-select. These will be the ORs. Something like this:

combo1.value AND combo2.value AND combo3.value AND (grid.selectedItem1 OR grid1.selectedItem2).

Thanks.

billtricarico

14 Aug 2012, 2:29 PM

I used a filter function to solve this. The filter function handles the OR case.