sInfo text for Print and Copy buttons Not working
sInfo text for Print and Copy buttons Not working
sas1973
Posts: 2Questions: 0Answers: 0
Below is my setup to the datatable using tabletools. My issue is i cannot get the "sInfo" text to be displayed when Copy or Print buttons are being used. It always display a empty white box.
Am i missing something? or is this a issue in TableTools?
Thanks
[code]
$(document).ready(function()
{
oTable = $('#FIELD_NUM_71').dataTable(
{
"sScrollX": "100%",
"bAutoWidth": false,
"aoColumnDefs": [{"sWidth": "3em", "aTargets": [ 0 ]},
{"bSortable": false, "aTargets": [0] }],
"bProcessing": true,
"bJQueryUI": true,
"oLanguage": {"sSearch": "Filter:"},
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aLengthMenu": [[10,25,50,100,-1], [10,25,50,100,"All"]],
"iDisplayStart": 0,
"sDom": '<"H"Tlfr>t<"F"ip>',
"oTableTools": { "aButtons": [ {
"sExtends": "copy",
"sToolTip": "Copy to Clipboard",
"sInfo": "Table Copied to Clipboard",
"mColumns": "sortable"
},
{
"sExtends": "xls",
"sTitle": "My title",
"sToolTip": "Save as Excel Worksheet",
"sFileName": "*_TableTools.pdf",
"mColumns": "sortable"
},
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sTitle": "My title",
"sToolTip": "Save as PDF",
"sFileName": "*_TableTools.pdf",
"sPdfMessage": "RTCIS Message Here.",
"mColumns": "sortable"
},
{
"sExtends": "print",
"sInfo": "RTCIS Table Print, Please press escape when done",
"sMessage": "RTCIS Scroll Area",
"bShowAll": false,
"mColumns": "sortable"
}],
"sSwfPath": "../web/thirdparty/datatables/1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf" }
});
});
[/code]
Am i missing something? or is this a issue in TableTools?
Thanks
[code]
$(document).ready(function()
{
oTable = $('#FIELD_NUM_71').dataTable(
{
"sScrollX": "100%",
"bAutoWidth": false,
"aoColumnDefs": [{"sWidth": "3em", "aTargets": [ 0 ]},
{"bSortable": false, "aTargets": [0] }],
"bProcessing": true,
"bJQueryUI": true,
"oLanguage": {"sSearch": "Filter:"},
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"aLengthMenu": [[10,25,50,100,-1], [10,25,50,100,"All"]],
"iDisplayStart": 0,
"sDom": '<"H"Tlfr>t<"F"ip>',
"oTableTools": { "aButtons": [ {
"sExtends": "copy",
"sToolTip": "Copy to Clipboard",
"sInfo": "Table Copied to Clipboard",
"mColumns": "sortable"
},
{
"sExtends": "xls",
"sTitle": "My title",
"sToolTip": "Save as Excel Worksheet",
"sFileName": "*_TableTools.pdf",
"mColumns": "sortable"
},
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sTitle": "My title",
"sToolTip": "Save as PDF",
"sFileName": "*_TableTools.pdf",
"sPdfMessage": "RTCIS Message Here.",
"mColumns": "sortable"
},
{
"sExtends": "print",
"sInfo": "RTCIS Table Print, Please press escape when done",
"sMessage": "RTCIS Scroll Area",
"bShowAll": false,
"mColumns": "sortable"
}],
"sSwfPath": "../web/thirdparty/datatables/1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf" }
});
});
[/code]
This discussion has been closed.
Replies
Removing the reference fixed it.