Can Export Message Include text of Search (basic or custom) Criteria?
Can Export Message Include text of Search (basic or custom) Criteria?
I see that Buttons for Export can include Messages. Yay!
It is possible to capture the search/filter criteria -- be it from basic and/or builder searches -- and push that info into the message?
JS Bin here with a stub, but I'm not sure if it's possible to do what I want or not, and if so, how. :0)
This question has an accepted answers - jump to answer
Answers
You can use
search()
to get the global search value. You can usesearchBuilder.getDetails()
to get the SearchBuilder filter. I updated your example to showsearchBuilder.getDetails()
in your PDFExport:http://live.datatables.net/jilaxeja/2/edit
Kevin
Thanks @kthorngren!