Search column with combined string

Search column with combined string

NewcomaNewcoma Posts: 24Questions: 0Answers: 0
edited August 2013 in General
Hello

i have a column where each row has either 'passed', 'failed' or 'ignored' as text . i want to do a filter search so only 'failed' and 'ignored' are visible. But I can't combine a search string within the same column. 'failed ignored' gives 0 results.

Any suggestions?

Replies

  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    Are you using the default search functionality, or are you writing a fnFilter yourself? I am able to type in 2 phrases in the search box and only rows matching both phrases (in one column, coincidentally) are shown.
  • cesincocesinco Posts: 5Questions: 0Answers: 0
    edited August 2013
    You can try something like:

    [code]
    var columnNumberToFilter = 3; //or whatever...
    oTable.fnFilter( "(failed)|(ignored)", columnNumberToFilter, true );
    [/code]
  • NewcomaNewcoma Posts: 24Questions: 0Answers: 0
    cesinco That seemed to do the trick. Thank you so much!
This discussion has been closed.