Flash export buttons

Flash export buttons

vsekvsek Posts: 30Questions: 17Answers: 0

I am not seeing in my searching a resolution for adobe going away in a month and I am currently using this:
https://datatables.net/extensions/buttons/examples/flash/simple.html

What are my options?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
  • vsekvsek Posts: 30Questions: 17Answers: 0
    edited February 2021

    Ok I am revisiting this issue, These are the methods that build my buttons and changed them to html5 below. changed my Datatable settings too below but never see a change in the buttons.
    See anything wrong?

      _decorateDataTable : function() {
                var oTable = this.element.dataTable({
                    "dom" : "Bfrtip",
    
    _createCustomTableToolbarButtons : function() {
                // Extend TableTools.Buttons -- A framework for adding buttons to the DataTable
                
                
                TableTools.BUTTONS.new_entry = $.extend(true, TableTools.buttonBase, {
                    "sNewLine" : "<br>",
                    "sButtonText" : "Add " + this._getEditDialogName(),
                    "sExtends" : "div",
                    "dialogInstance" : this,
                    
                    "fnClick" : this._handleCreateRecordEvent,
                    "fnInit": function ( nButton, oConfig ) {
                        $(nButton).button();
                    }}
    
                );
            },
    
            _defineOTableTools : function() {
                var tools;
                if (this.options.flagEnableTableToolbar) {
                    this._createCustomTableToolbarButtons();
                    var aButtons = [ 'copyHtml5', 'csvHtml5', 'excelHtml5', 'pdfHtml5', 'printHtml5']; 
                    if(isFullEditUser){
                        aButtons = [{'sExtends' : 'new_entry'},  'copyHtml5', 'csvHtml5', 'excelHtml5', 'pdfHtml5', 'printHtml5'];
                    }
                    tools = {
                            "sSwfPath": resourceContext+"/swf/copy_csv_xls_pdf.swf",
                            "aButtons": aButtons                            
                        };
                }
                return tools;
            },
    
  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    TableTools are old and are no longer supported. It would be worth updating and using Buttons instead,

    Colin

This discussion has been closed.