XLS CSV PDF not working

XLS CSV PDF not working

thanseemsthanseems Posts: 3Questions: 1Answers: 0
edited September 2014 in Free community support
$('#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" }
                                      ],
                                      
                      });

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    Please link to a test case as required in the forum rules.

    Allan

  • thanseemsthanseems Posts: 3Questions: 1Answers: 0

    I've followed this way, and exactly working as this, print,select,deselect options are working but rest of things are not working

    http://jsfiddle.net/3F8ZJ/

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    I have a feeling that the problem is with the CDN SWF file - not so much that the file is dodgy or broke, but rather than the Flash runtime doesn't work as expected when running a remote file. Could you try hosting it locally on your own site and see if that works for you?

    Allan

  • thanseemsthanseems Posts: 3Questions: 1Answers: 0

    Hi allan,

    I've hosted it to my own local server, and changed the SWF file and tested in different combinations, i can see the file is getting loaded on browser, but not working..

    thanks for the support..
    thanseem

This discussion has been closed.