How can I add an sPDFMessage like functionality to my export in Excel/CSV Table Tool Buttons ?
How can I add an sPDFMessage like functionality to my export in Excel/CSV Table Tool Buttons ?
fleska
Posts: 3Questions: 2Answers: 0
I needto add a title and the current date to the generated Excel file/ CSV file .Also I am using Ajax sourced data to populate my DataTables .
My sampleCode currently reads like below:
"sDom" : 'T<"clear">lfrtip',
"oTableTools" : {
"sSwfPath" : "/resources/js/data-tables/media/swf/copy_cvs_xls_pdf.swf",
"aButtons" : [
{
"sExtends" : "csv",
"sButtonText" : "Generate Report",
"target" : "#copy"
}
]
},
"sPrintMessage" : " Hospital Record ",
"sAjaxSource" : "requestMonitorDataTables",..............
...............................................................................................
This discussion has been closed.
Answers
There is no option to do this at the moment as the title and message wouldn't really make any sense in the CSV file structure (i.e. they would invalidate the CSV rows, since they are not themselves in the same structure as the rest of the file).
Allan