-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datatables export buttons #771
Comments
Difficult to tell. |
Thanks Eric. You are right. There appears to be a JavaScript error, however no clue what it is relating to. The JavaScript lines where the error is reported at points to the below snippet
Although it is always possible that there could be some other problem. Have you got any working examples of this implementation that I can refer to? Thanks |
It seems your JS is corrupted, you probably made a bad copy/paste or something, but it ends up with a syntax error somewhere. |
Thanks Eric - it ended up being a silly issue with Javascript registry. After I triple checked everything the buttons started working. One thing that did tumble me out was including the SWF file for the buttons. Eventually used the same method as ZCML config file for declaring resources to be included. Its an extremely useful tool to have in terms of the controlling the search columns and exporting data. Have used plomino's /exportXLS and it hasn't worked very well for us. I would wish we have some example for those who may benefit from it. I am more than happy to do a small tutorial for your review if you would like to consider. Secondly, Datatables have deprecated the use of TableTools with buttons - possibly switching from Flash to HTML5. I am hoping that someone is already working on the collective datatables JS for adopting the newer version. Thanks again. |
Hi @ebrehault ,
I am trying to enable the "TableTools" option for all datatables in our site. Have registered the necessary javascript and css under portal_javascripts and portal_css registries.
Used the above code inside Dynamic table parameters in one of the views we have and it doesn't seem to show any buttons for export except that some CSS got distorted.
I also tried the aButtons script to no avail.
Obviously doing something wrong here. Can you kindly throw some light please?
Thanks
The text was updated successfully, but these errors were encountered: