Results 1 to 3 of 3

Thread: Multiple filters combined with OR

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    82
    Answers
    2
    Vote Rating
    0
      0  

    Default Unanswered: Multiple filters combined with OR

    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?

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

    Best regards,
    Tobias

  2. #2
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Answers
    59
    Vote Rating
    59
      0  

    Default

    You can use the store's filterBy method and specify a function to filter the store by.

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Posts
    82
    Answers
    2
    Vote Rating
    0
      0  

    Default

    That only works for local filtering, or?

Posting Permissions

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