I want to set some additonal parameter only when exporting the report. How can i achieve this using visualize.js.
1 Answer:
Posted on November 4, 2016 at 2:13pm
You could use the export function for Visualize.js and simply only have it run when some action (or paramater) is being passed into your embedded report.
$(function() { $("#filterTen").on('click', function() { limitResults(10); }); $("#filterReset").on('click', function() { resetFilters(); }); $("#ExportButton").on('click', function() { slaveReport.export({ outputFormat: $("[data-paramId=exportFormat]").val() }, function(link) { var url = link.href ? link.href : link; window.location.href = url; }, function(error) { console.log(error); }); });});