1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    82
    Answers
    2
    Vote Rating
    0
    dobberph is on a distinguished road

      0  

    Default Unanswered: Multiple filters combined with OR

    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
    311
    Answers
    59
    Vote Rating
    52
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      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
    dobberph is on a distinguished road

      0  

    Default


    That only works for local filtering, or?

Thread Participants: 1