Jump to content
JasperReports Library 7.0 is now available ×

Send additional parameter to JasperServer for export report usnig visualize js

Recommended Posts

  • 3 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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);  }); });});[/code]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...