How to add subReports in iReport

Hi to All,

Iam new in iReport, i have created two subReports & they are working fine with a Date parameter in queryString but the problem is how to add these two subReports into a Mater Report & how to view this Master Report through parameter.

Please help me by giving an example.

pun's picture
pun
71
Joined: Jun 15 2007 - 12:49am
Last seen: 16 years 3 months ago

4 Answers:

Hi i worked on subreports do one thing on the toolbar there is subreport icon,when u click on that it will ask u to which report u want to create the subreport so u can give the report name to which report u want to make it as a subreport based on that particular date parameter....
may be its working try that once bye
subrahmanyam's picture
Joined: Jun 27 2007 - 6:31pm
Last seen: 16 years 3 months ago
Hi i worked on subreports do one thing on the toolbar there is subreport icon,when u click on that it will ask u to which report u want to create the subreport so u can give the report name to which report u want to make it as a subreport based on that particular date parameter....
may be its working try that once bye
subrahmanyam's picture
Joined: Jun 27 2007 - 6:31pm
Last seen: 16 years 3 months ago
Thanks subrahmanyam,

I have created the subgroup & subgroup icon appeared. But how can i pass the value of Date in the Master Report so that the subgroup report can access that value & show the result.

Please do me favour. I stuck in the middle. Can I have an example, please.
pun's picture
pun
71
Joined: Jun 15 2007 - 12:49am
Last seen: 16 years 3 months ago
Hi,
1. Try to add a parameter of type "DATE in your case". that should be in your master report.
2. Click on the properties of the subreport. click on subreport ("Other") tab, than click on "ADD".
2.1 Add the Parameter name as you name it in you master report.
2.2 Pass the paramter value $P{your paramter name}
3. Remember also if your master query is filtered by date to include that in your PARAMETERs.
4. If you are passing a field, you just type the field name instead of the parameter name.
fariszuriekat's picture
Joined: Nov 1 2006 - 1:25am
Last seen: 16 years 11 months ago
Feedback