PDA

View Full Version : Multiple filters combined with OR



dobberph
5 Jul 2012, 8:12 AM
Hi all,

I want my filter to search (remotly) my table and so all columns for the provided string.
With the normal filter function I can only give it a columnName and the filterText.
The second filter is then combined with AND. I need an OR.
Is there any possibility to do this?


store.filter([
{property:'geraete_bez',value:newVal},
{property:'nutzer_ort',value:newVal}
]);
This would do AND.

Best regards,
Tobias

droessner
5 Jul 2012, 9:07 AM
You can use the store's filterBy method and specify a function to filter the store by.

dobberph
5 Jul 2012, 11:06 AM
That only works for local filtering, or?