Export CSV
-
for those who need to export in CSV the generated result table, this javascript/jQuery snippet does the trick:
I personally use “CUSTOM CSS AND JS” plugin with this code set to Admin pagesjQuery(document).ready(function( $ ){ jQuery.getScript('https://cdn.jsdelivr.net/npm/[email protected]/src/table2csv.min.js', function () { if ($(".ELISQLREPORTS-table").length) { $('table.ELISQLREPORTS-table').each(function () { var $table = $(this); var $title = $(".ELISQLREPORTS-Report-Name")[0].textContent; var $button = $("<button type='button'>"); $button.text("Export to CSV"); $button.insertBefore($table); $button.click(function () { $table.table2csv('download', { 'filename': $title + ".csv" }); }); }); } }); }); /* https://github.com/OmbraDiFenice/table2csv */
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Export CSV’ is closed to new replies.