Send additional parameter to JasperServer for export report usnig visualize js

I want to set some additonal parameter only when exporting the report. How can i achieve this using visualize.js.

sudama.patidar_1's picture
Joined: May 30 2016 - 9:19pm
Last seen: 4 years 10 months ago

1 Answer:

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);  }); });});
dpetzold's picture
283
Joined: May 12 2014 - 10:47am
Last seen: 5 years 5 months ago
Feedback