tabletools exports
tabletools exports

hi, i'm new in programming and i have a tabletools question.
After searching for a value i was able to print correctly only the results records of the search, but clicking on copy, xls, pdf or csv buttons i have the exports of all records in the table.
here is my code:
$(document).ready( function () {
$('#reports_data').dataTable( {
"oTableTools": {
"aButtons": [ "print", "copy" ],
"sSwfPath": "/media/swf/copy_csv_xls_pdf.swf"
},
"bStateSave": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
} );
} );
After searching for a value i was able to print correctly only the results records of the search, but clicking on copy, xls, pdf or csv buttons i have the exports of all records in the table.
here is my code:
$(document).ready( function () {
$('#reports_data').dataTable( {
"oTableTools": {
"aButtons": [ "print", "copy" ],
"sSwfPath": "/media/swf/copy_csv_xls_pdf.swf"
},
"bStateSave": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
} );
} );
This discussion has been closed.
Replies