$('#example').dataTable({
"bProcessing": true,
"sAjaxSource":"./history",
"bDestroy": true,
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
//"sSwfPath": "http://cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf",
"sSwfPath": "resources/media/copy_csv_xls_pdf.swf",
},
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
},
"aoColumns": [
{"sTitle" : "Issue Logged", "mData": "issueLogged" },
{"sTitle" : "Agent Name", "mData": "agent" },
{"sTitle" : "Branch Code", "mData": "brcode" },
{"sTitle" : "Branch Name", "mData": "brname" },
{"sTitle" : "State", "mData": "state" },
{"sTitle" : "Category Complaint", "mData": "Category" },
{"sTitle" : "Priority", "mData": "priority" }
],
});
↧
XLS CSV PDF not working
↧