Jump to content
Changes to the Jaspersoft community edition download ×

Passing parameter from one report to another based on select data from the first report


tabalajir

Recommended Posts

Hi Team, 

I have created two seperate reports [main and sub], main will have a chart that has reagion wise sales data, and sub will have detailed sales person and sales details information,

i have created the REGIONCODE parameter in the sub report and in main report i have created hyperlink as "ReportExecution", with 2 parameters, 

1. _report="http://localhost:2071/MyReports/servlets/viewer?jr_report_uri=Sub.jrxml&jss_context=301dfa68-4f27-4c0e-af64-a6e75338e710&jr_async=true

2. REGIONCODE=$F(REGIONCODE)

after run in interactive mode, on click on the main report, i could not see the sub report, i got the followin header in fiddler [request]

"GET /MyReports/servlets/viewer?jr_report_uri=null&_report=http://localhost:2071/MyReports/servlets/viewer?jr_report_uri=Sub.jrxml&jss_context=301dfa68-4f27-4c0e-af64-a6e75338e710&jr_async=true&REGIONCODE=05 HTTP/1.1"

jr_report_uri=null, 

please help me to resolve the issue.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

try following steps. May be this could help you.

1) I am not sure about making equal parameter in main and sub report spelling Parameters from both report should be same.

2) try to execute  both query in query builder with same parameter. this will make you sure that there is no problem in your query.

3) if database is null then Jasper render false everything, its a builtin function.

 

Link to comment
Share on other sites

  • 3 years later...

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