Logical AND-combined column-specific search in 'search' option?

Logical AND-combined column-specific search in 'search' option?

florianarndtflorianarndt 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

Answers

  • allanallan Posts: 61,740Questions: 1Answers: 10,111 Site admin

    Hi Florian,

    multi-column search condition in the text field?

    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

  • florianarndtflorianarndt Posts: 7Questions: 3Answers: 1

    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

  • kthorngrenkthorngren Posts: 20,320Questions: 26Answers: 4,773

    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

  • florianarndtflorianarndt Posts: 7Questions: 3Answers: 1

    I guess I should parse the search field value on the serverside and generate calls to filter methods as needed. Thanks for your help!

Sign In or Register to comment.