oTableTools Issues

oTableTools Issues

Ma7moudMa7moud Posts: 4Questions: 4Answers: 0
edited April 2016 in Free community support

(these only at IE browser)

*when I save any table in any format(excel,pdf,cvs) then use the search function to select specific records then try to save it in any format ,the saved version is the same as the old unmodified table version not the version with the desired records

*when I try to save any table in a specific format (pdf,cvs,excel) and then try to save it in an other format the following scenario occurs
1- when I save pdf first after that if I try to save in excel/cvs format the saved files are empty
2- when I save excel\csv first after that if I try to save in pdf format the pdf button won't work

oTable=   $('#JSDrivertable').dataTable({
            "sDom": "R<'row-fluid'<'span4'l><'span4'T><'span4'f>r>t<'row-fluid'<'span4'i><'span8'p>>",
            "sPaginationType": "full_numbers",
            "bJQueryUI": false,
            "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"],
            "bStateSave": true,
            "bAutoWidth": false,
            "sAjaxSource": "URL",
            "bProcessing": true,
            "bServerSide": true,
            "aoColumns": [
                           { "mData": "Code", "sWidth": '10%', "bSearchable": false }, { "mData": "Name", "sWidth": '25%' }, { "mData": "KeyCode", "sWidth": '25%', "bSearchable": false }, { "mData": "KeyEndDate", "sWidth": '25%' }
                                   ],
            "columnDefs": [
       { "type": 'date-uk', "targets": 3 }
            ],

            "oTableTools": {
                "sSwfPath": "../Resources/plugins/tables/dataTables/swf/copy_csv_xls_pdf.swf",
                "aButtons": [
                 {
                     "sExtends": "copy",
                     "sButtonText": "Copy"
                 },
                    {
                        "sExtends": "print",
                        "sButtonText": "Print"
                    },
                    {
                        "sExtends": "collection",
                        "sButtonText":  "Save" + '<span class="caret" />',
                        "aButtons": ["csv", "xls", "pdf"]
                    }
                ]
            },
            "oLanguage": {
                "sSearch": "<span></span> _INPUT_",
                "sLengthMenu": "<span>_MENU_</span>",
                "sProcessing": "Processing... Please Wait!",
                "sZeroRecords": "No Records found !",
                "sInfo": "Showing _START_ to _END_ of _TOTAL_ records",
                "sInfoEmpty": "Showing 0 to 0 of 0 records",
                "sInfoFiltered": "( filtered from _MAX_ total records )",
                "sEmptyTable": "<b> No records are found, click on 'Add New Driver' to add a new Driver</b>"

            },

Answers

  • allanallan Posts: 62,115Questions: 1Answers: 10,185 Site admin

    I would suggest you use Buttons rather than TableTools. TableTools is legacy software and no longer being updated.

    If you are still having problems with Buttons, please link to a test page showing the issue so it can be debugged.

    Allan

This discussion has been closed.