Multifilter with OR operator
Multifilter with OR operator
Hello !
The syntax 'option1|option2|...|optionN ' does not work...
[code]
$('#example').dataTable().fnFilterAll( 'option1|option2|...|optionN ',columnNo,true,false);
[/code]
can you correct my code ?
and by the way, can you tell me in simple words what is 'true' and 'false' ?
I read this : http://datatables.net/plug-ins/api#fnFilterAll , but it's really complicated to a french as me !
Thanks
The syntax 'option1|option2|...|optionN ' does not work...
[code]
$('#example').dataTable().fnFilterAll( 'option1|option2|...|optionN ',columnNo,true,false);
[/code]
can you correct my code ?
and by the way, can you tell me in simple words what is 'true' and 'false' ?
I read this : http://datatables.net/plug-ins/api#fnFilterAll , but it's really complicated to a french as me !
Thanks
This discussion has been closed.
Replies
Can you help me ?
Parameter 3 as true (meaning it is regex)
Parameter 4 as false (meaning don't use smart filtering)
Allan
I updated datatable.
How do I filter all my tables with OR conditions?
You had previously advised to use fnFilterAll ... I am a bit lost and I despair!
Here is my code :
[code]
$(".table_a_filtrer").dataTable().fnFilterAll('option1'||'option2',4,false);
[/code]
This does not work, even with a "fnFilter"
If I do not understand what you said, I'm sorry, I'm french and google translation helps a lot!
Thank you for your interest in my topic !
[code]
$(".table_a_filtrer").dataTable().fnFilterAll('option1|option2', 4, true, false);
[/code]
should work.
Allan
Thank you very much Alan, you are my savior :)