Send additional parameter to JasperServer for export report usnig visualize js

0

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: 1 year 2 months ago

1 Answer:

0

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
Joined: May 12 2014 - 10:47am
Last seen: 1 year 9 months ago
Feedback
randomness