TableTools - Filename export

TableTools - Filename export

fedeDBLfedeDBL Posts: 2Questions: 0Answers: 0
edited February 2010 in TableTools
Is possible to set the file name of the exported .xls?

Replies

  • gautegaute Posts: 4Questions: 0Answers: 0
    There is a parameter to the initialization of TableTools called sTitle, this will be used as the title of the .xls.
  • myqalanmyqalan Posts: 13Questions: 0Answers: 0
    Allan,
    How should this be implemented? I have tried a variety of ways, but nothing seems to work.

    I currently have two tables on the page that each utilize TableTools, but I need to be able to export the results of each with specific names.

    Thanks,

    Mike
  • myqalanmyqalan Posts: 13Questions: 0Answers: 0
    Nevermind.....I found it
  • heiterheiter Posts: 10Questions: 0Answers: 0
    well would you be so kind and share it with us, myqalan
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    TableTools will use the page title, or TableToolsInit.sTitle if it is set. So simply putting in TableToolsInit.sTitle = "whatever" will do it.

    Allan
  • heiterheiter Posts: 10Questions: 0Answers: 0
    thank you allan! thanks so much for the support, for your datatables, all the plugins like tabletools you make.
    thumbs up.
  • ibrahimibrahim Posts: 2Questions: 0Answers: 0
    Hello all,

    i m not able to get where exactly to put this line TableToolsInit.sTitle = "whatever" to change the default filename.
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    You don't :-) This thread is from more than a year ago and refers to TableTools 1. With TableTools 2 now available sTitle is a button configuration option: http://datatables.net/extras/tabletools/button_options#sTitle (there is a code example in the documentation there).

    Allan
  • ibrahimibrahim Posts: 2Questions: 0Answers: 0
    Thanks alot.. :-)
This discussion has been closed.