TableTools export PDF/Excel - cached applied filter on second export
TableTools export PDF/Excel - cached applied filter on second export
10.10.4
Hi
I can save xls/pdf files for a none-filtered table, as well as a filtered subset of the same table. (I make use of filter: "applied")
But.. only if it is the first time I save after the page is loaded. Any further save/export attempts used the 'cached' version of the first export data for that specific table. This cached version can be filter or not - depending on if the table was filtered before the first export was done.
Any advice please?
aButtons: [
$.extend({
sExtends: "xls",
sTitle: pdfTitle,
sFileName: exportFileName + '.csv'
}, { oSelectorOpts: { filter: "applied" } }),
$.extend({
sExtends: "pdf",
sPdfOrientation: "landscape",
sTitle: pdfTitle,
sFileName: exportFileName + '.pdf'
}, { oSelectorOpts: { filter: "applied" } })
]
This question has an accepted answers - jump to answer
Answers
Hi,
Thanks for your question. I've just put together a little test page that uses your button definitions, but unfortunately I haven't been able to reproduce the issue.
Steps taken:
Could you confirm if I have performed the correct steps?
Many thanks,
Allan
Thanks, only see the response now.
I tested again and found that my fancy nested buttons are the cause. I can live without that so not urgent.
Thanks very much for the help!
Difference indicated below:
Just a note - I upgraded versions as well:
DataTables 1.10.7
TableTools 2.2.4
Editor 1.4.2