Results 1 to 2 of 2

Thread: Filtering an store by int

  1. #1
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    589
    Answers
    5

    Default Answered: Filtering an store by int

    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

  2. I figured it out.

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

  3. #2
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    589
    Answers
    5

    Default

    I figured it out.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •