Logical AND-combined column-specific search in 'search' option?
Logical AND-combined column-specific search in 'search' option?
florianarndt
Posts: 7Questions: 3Answers: 1
Hey DT-Community,
is there a way to encode a multi-column search condition in the text field?
I would love to use the 'search' init options to link a searched/filtered list of records.
If it doesn't exists I would love to see something like "pid=48493 level=debug" to reference some log entries.
Sunny greetings
Florian
This discussion has been closed.
Answers
Hi Florian,
Do you mean as http query parameters? If so, then yes, you can use a rendering function to modify the output of a cell based on the content of the rest of the row.
Regards,
Allan
Hi Allan,
thanks for your reply.
I am aware of columns.render, but isn't this just effective on the client-side on rows which are loaded into the browser?
What I want is to use one or more http query parameter(s) to filter for more than one column on the serverside - with your PHP backend library.
Regards,
Florian
Are you looking to send the parameters in the Ajax request? If so use
ajax.data
as a function as showing in this example.Kevin
I guess I should parse the search field value on the serverside and generate calls to filter methods as needed. Thanks for your help!