TableTools export to excel multiple tables
TableTools export to excel multiple tables
detoro84
Posts: 1Questions: 0Answers: 0
Hi, I have a problem. I have a page with multiple tables but I want just one "Save" button to save all of them in the same excel. For one, it works perfectly.
I've seen there are threads of 2011 (like this one: http://datatables.net/forums/discussion/4387/printing-exporting-multiple-datatables-at-once) but I don't know the exact way to achieve that, and maybe that's too old.
Can someone help me?
I have a pretty basic initialization
$('#example').dataTable({
dom: 'T<"clear">lfrtip',
tableTools: {
"sSwfPath": "http://cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "xls", "pdf" ]
}
]
},
"language": {
"url": "${pageContext.request.contextPath}/resources/locale/datatable/Spanish.json"
}
});
This discussion has been closed.