Jump to content

Fixed Value Input Controls?


mattbates

Recommended Posts

I would quite like to expose one report definition on Jasper Server as two different logical reports.

I assumed I would be able to create an Input Control that just passed a value without any user interaction but I can't work out how to do this?

Any ideas?

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If you are doing it through web services in java it would be something like this:

java.util.Map parameters = new java.util.HashMap();
parameters.put("key", "value");

then when you make your call you pass the parameters:
client.runReport(currentUri, parameters);

 

if you are running it through the web (ie URL) then just add the parameter in the url like so:
http://server.company.com:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=&reportUnit=&key=value

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...