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

How to pass main report's parameter to subreport


udumanajmeer

Recommended Posts

For this scenario i want to pass main report parameter to subreport....

then i want to check

if(main_report_parameter.equals(sub_report_parameter)){

            that sub_report only display here....

}

or

any possible is there check like this

if(main_report_parameter.equals("personal"){

            that sub_report only display here....

}

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi ,

You can easily pass the parameters to the subreports from the main report and viceversa . For this you can go to the properties of the subreport and there in the end you can find Parameters. Now in here you can click add and specify the name of the parameter of the subreport which would recieve the value from the main report , basically you need to map the parameters of subreports and the main report.

If you want to pass the  data from the subreport to the main report then you need to specify the Return values in the properties of the subreport and do same mapping here . 

If you want to do this programatically then refer to
http://www.tutorialspoint.com/jasper_reports/jasper_create_subreports.htm

 

Hope that this helps.

Thanks,

Ankur Gupta.

 

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