How to add subReports in iReport

0

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
3
Joined: Jun 15 2007 - 12:49am
Last seen: 12 years 5 months ago

A subreprot is used when we have more then one set of data and we want to display that data or information in a single report. That's why we need to create such kind of report. Or we can say that to display multiple data on multiple details band we need subreports. There is a complete and step by step guide how to add sub reports.

Hope this will helps you and others.

sehrishnaz47 - 1 year 6 months ago

4 Answers:

0
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: 12 years 4 months ago
0
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: 12 years 4 months ago
0
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
3
Joined: Jun 15 2007 - 12:49am
Last seen: 12 years 5 months ago
0
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: 13 years 3 weeks ago
Feedback
randomness