TableTools not export CSV and Excel. Help me please

TableTools not export CSV and Excel. Help me please

mmoodnammoodna Posts: 3Questions: 0Answers: 0
edited December 2010 in Plug-ins
Hi allan
I'm thai. I'm sorry about the English language. My problem is TableTools not export CSV and Excel,but coppy to clibbord and print preview Success. This is my code,css file and js file.

[code]



@import "css/demo_page.css";
@import "css/demo_table.css";
@import "css/demo_table_jui.css";
@import "css/jquery-ui-1.7.2.custom.css";
@import "css/TableTools.css";










$(document).ready(function() {

TableToolsInit.sSwfPath = "swf/ZeroClipboard.swf"; //my directory

$('#example').dataTable( {
"bProcessing": true,
"bJQueryUI": true,
"sAjaxSource":'my json format data',//example
"aaSorting": [[ 4, "desc" ]],
"sPaginationType": "full_numbers",
"sScrollX": "100%",
"sScrollXInner": "200%",
"bScrollCollapse": true,
"oLanguage": {
"oPaginate": {
"sFirst": "???????", //first
"sPrevious": "????????",//previous
"sNext": "?????",//next
"sLast": "???????????"//last
}},
"sDom": '<"H"lTfr>t<"F"ip>'
} );
} );







NewContactMainSel










????
subzone
areas
size
??????
????????
???????????
????????????
?????????
???????
?????????
total
total/sqm
rev o
o net
ar R
status
dealID




?????????????????? server







[/code]

Thank you very much.

Replies

  • DrakoDrako Posts: 73Questions: 0Answers: 0
    Im having the same problem, none of the buttons work, just the print one.
  • DrakoDrako Posts: 73Questions: 0Answers: 0
    got it working, you just NEED to set the path on your code file, doesnt work changing the TableTools.js for some reason.

    TableToolsInit.sSwfPath = "TableTools/media/swf/ZeroClipboard.swf";
  • mmoodnammoodna Posts: 3Questions: 0Answers: 0
    edited December 2010
    Thank you, Drako

    I'm tried to do it. but, it unsuccessful

    [code]TableToolsInit.sSwfPath = "swf/ZeroClipboard.swf";[/code] My directory is swf/ZeroClipboard.swf

    It show icon coppy clibbord,CSV,Excel and print.It clicked.but,It not show dialog to save Excel and CSV.

    this is my dataTable.
    http://www.uppicweb.com/show.php?id=d60675b8688744e637c2ccc00c5bec2f

    But not show this.
    http://www.uppicweb.com/show.php?id=3b1b9528d07992cdc04af4cf6e37dbea

    Help me please.
    Thank you.
  • mopitarmopitar Posts: 5Questions: 0Answers: 0
    Hi!
    I use this code to generate excel files. http://px.sklar.com/code.html/id=488
    With jquery and this functions it is easy to develop an utility to read a table and export it to excel.

    hope this helps you!
  • mmoodnammoodna Posts: 3Questions: 0Answers: 0
    Thank you mopitar.
    I'm not understand. I have a preview video.

    http://www.youtube.com/watch?v=azsx8qJ9ySw

    What is my problem.please help me.
  • noctisnoctis Posts: 1Questions: 0Answers: 0
    i know... you must download again your tabletools.js .... in tab extrass... don't use table tools extras from packet bundle datatables...bcoz, it's not working... just try that....
This discussion has been closed.