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 ?

fleskafleska Posts: 3Questions: 2Answers: 0
edited June 2015 in Free community support

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",..............
                                                                  ...............................................................................................

Answers

  • allanallan Posts: 61,928Questions: 1Answers: 10,153 Site admin

    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

This discussion has been closed.