Domen Dolar - 2016-04-12

Demo shown how to export datatable rows into format CSV, Excel, PDF.

  1. You have block with name B10 with rows more then 1
  2. Write yur own "FORM_JS" code
    --Create new DataTable with custom properties!
    var newDT1 = JSON.parse(JSON.stringify(_rasd_dataTableProperties));
    --Your custom preferences. If no chanege tehn don't add any.
        newDT1.dom='Bfrtip';
        newDT1.buttons=[
            'copyHtml5',
            'excelHtml5',
            'csvHtml5',
            'pdfHtml5'
        ];
    -- 
    newDT1.destroy = true;
    $("#B10_TABLE").removeClass( "rasdTableN" ); 
    var xTable1 = $("#B10_TABLE").DataTable(newDT1);
 

Last edit: Domen Dolar 2022-12-15