overriding fnClick for in tabletools for pdf generation does not show the pdf dialog
overriding fnClick for in tabletools for pdf generation does not show the pdf dialog
Hi,
I am extending datatable pdf and have provided an implementation for pdf fnclick function. If I remove this function the pdf shows up. However, when I provide an implementation of fnClick, it shows both the the alerts but not the pdf.
any ideas what could be wrong in the code below?
"oTableTools": {
"sSwfPath": "resources/images/datatools/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{
"sExtends": "pdf",
"sButtonText": "<img src='resources/images/datatools/pdf.png' alt='pdf'/>",
"oSelectorOpts": { "filter": "applied" },
"sPdfOrientation": "landscape"
,
"fnClick" : function (nButton, oConfig, flash) {
alert('hi');
this.fnSetText(flash,"title:"+this.fnGetTitle(oConfig)+"message:"+oConfig.sPdfMessage+"colWidth:"+this.fnCalcColRatios(oConfig)+"orientation:"+oConfig.sPdfOrientation+"size:"+oConfig.sPdfSize+"--/TableToolsOpts--"+this.fnGetTableData(oConfig));
alert('hi#');
}
},