PDA

View Full Version : Filtering an store by int



Dumas
4 Oct 2012, 9:48 AM
Hello,

I have an field of type int called article_id and I want to filter it. But when I do store.filter('article_id', 2) not only the records with article_id equals 2 are selected, but also the ones with article_id 20, 21, ...

How can I filter for exact matches?

Thanks
Roland

Dumas
4 Oct 2012, 10:29 AM
I figured it out.

The trick is to do: store.filter({property:'article_id',value:2, exactMatch:true})