Tabletools for Multiple tables not working

Tabletools for Multiple tables not working

shashdrshashdr Posts: 1Questions: 1Answers: 0
edited May 2015 in Free community support

I've had a chance to look at multiple examples of the same issue. None of the issues resolved mine. Here's the scenario. I have multiple tables like 10 - 15 tables which are dynamic and varies based on requests are displayed on a single page. Table tools are working for only one table and not for the rest of the tables. It's also random which table's table tools are working. I am instantiating each table in a for loop . So all instances are different. I don't see any issues with swf path as I check for every request on chrome developer tools- Network for the (request-response). Can anyone has solution for it? Here is the code:

$("# datatableTableId").DataTable({
"data": this.settings.data,
"columns": this.settings.columns,
"autoWidth": false,
"paging": true,
"deferRender": true,
"stateSave": true,
"iDisplayLength": 20,
"orderMulti": true,
"oLanguage": {

                        "oPaginate": {
                            "sNext": "",
                            "sPrevious": ""
                         }
                    },


                "tableTools": {

                        "aButtons": [ "xls", "pdf",  "print" ],
                        "sSwfPath": "../swf/copy_csv_xls_pdf.swf"


                },

                "dom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>" + "T" + "D" + "C" + "<'pull-right'A>" + "F" + "J" + "K" + "t" + "<'row'<'col-xs-6'i><'col-xs-6'p>>R",

                "lengthMenu": [[20, 40, 50, 100, 250, 500, -1], [20, 40, 50, 100, 250, 500, "All"]],


                "destroy":isExist

            }); 
This discussion has been closed.