Jump to content
We've recently updated our Privacy Statement, available here ×

How pass parameters in URL


genesis_net

Recommended Posts

Hi.. I need pass a parameter to invoke a report, store in jasperver machine, the code is like this:

 

http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/VEHICLE_REPORT%20&output=pdf

 

This work ok.. but the report has 1 parameters called (ID_VEHICLE) inside of sql query, I need pass one value to that parameter.. HOW do That?? I'm using jasperserver 1.2.1.. Thank's..

 

PD: I have to this link:

 

http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/VEHICLE_REPORT%20&output=pdf&j_acegi_security_check?j_username=jasperadmin&password=password_here

 

But send me the next error:

 

org.acegisecurity.AccessDeniedException: Access is denied

 

Thank's..

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Add the parameters at the end (after the login credentials) in the following format:

 

<param_name>=<param_value>&<param_name2>=<param_value2>&...

 

where

 

<param_name> is the parameter name and <param_value> is the value to be asigned.

 

At least that's the way it worked previously.

 

I was going to make a post like yours since the same thing happens in a scheduled report execution. Something that didn't happen before.

 

See thread:

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=25148&catid=10

Post edited by: javydreamercsw, at: 2007/05/11 17:03

Link to comment
Share on other sites

  • 2 years later...
  • 3 weeks later...

Do you mean pass the parameters to a sub report?

 

You need to create input controls for the parameters for the top report unit, and pass those parameters to the sub report.

 

Then you can pass the parameters as this thread shows.

 

Sherman

Jaspersoft

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