excel / csv / copy buttons not working, only print...

excel / csv / copy buttons not working, only print...

jaydeeuk1jaydeeuk1 Posts: 2Questions: 1Answers: 0

Bit of a strange one. I've looked up for answers but none have worked.

Been developing a system based on kingadmin bootstrap template, I have quite a few tables with the copy / excel/ csv etc buttons and worked fine today at the office. Just checking it this evening for my demo at tomorrows meeting.

Took laptop home, and now only the print button shows on all tables - no code has changed in mean time. All files are loaded locally not via CDN. Tried Chrome, edge and same thing happens. I tried using "sSwfPath":"//cdn.datatables.net/tabletools/2.2.4/swf/copy_csv_xls_pdf.swf"
but again no difference.

So out of interest I tried the live demo site for kingadmin, and that does the same thing too - but I know for sure it worked yesterday as I borrowed the code from the dynamic table examples to get mine working!

http://demo.thedevelovers.com/dashboard/kingadmin-v1.6.2/tables-dynamic-table.html

I'm thinking laptop related, I have chrome dev tools on and tried without caching etc.
Any ideas before I boot my laptop over the fence?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,734Questions: 26Answers: 5,031
    Answer ✓

    I'm not seeing the buttons either but I do see the message "Requires Flash plugin" under the Data Export table.

    Looks like they are using TableTools which has been retired in favor of the Buttons extension.

    Seems like you have to have Flash. Maybe thats the problem on your laptop.

    Anyway you probably won't get much help with TableTools because its not used and may not reliably work with current Datatables versions. You can look under the Buttons examples to learn how to use Buttons for export. You can use the Download builder to get the required Datatables and third party libraries needed for the export desired export buttons.

    Please post if you have any questions or issues getting the Buttons extension working.

    Kevin

  • jaydeeuk1jaydeeuk1 Posts: 2Questions: 1Answers: 0

    Thanks, just strange that it was working a few hours earlier, and now doesn't, both on my local site and the kingadmin demo!

    But I've now switched to the html5 buttons and seems to work, just I don't think the flash fall back option will.

  • allanallan Posts: 64,076Questions: 1Answers: 10,565 Site admin

    Flash is gradually being removed from browsers. Possibly your browser was updated for you by its auto update? Either way, good to hear it is working now.

    Allan

This discussion has been closed.