doubt in sub report

Hi all,
I have one Main Report and two subreports which is included in the main report.

In both the subreports iam usin a count query which i will be displaying in the main report.In the Main report i need to add those two values whih i got from two different sub reports.
senthil_teen's picture
Joined: Aug 16 2006 - 2:06pm
Last seen: 17 years 1 month ago

4 Answers:

Ok, that is possible. What is working now, and what is still to do?
JulEgner's picture
1134
Joined: Aug 3 2006 - 10:59pm
Last seen: 17 years 1 month ago
make a Variable in the main report for each of both values. make a subreport return value and connect the value from the subreport with the Variable of the main report. add the variables and display them in time= "band".
In subreport(others) you can set the subreport return value.
JulEgner's picture
1134
Joined: Aug 3 2006 - 10:59pm
Last seen: 17 years 1 month ago
Do i have that option in IReport 0.4.0.
because in subreport(others) i have an option to enter the subreport parameters.

if yes can u explain me how to do that?????

Here is the scenario

In main report i have two sub reports and the subreport queries return a single value(totally 2 values).I will display those two values in the main report and finally i hav to add those displayed values in the main report.........

How do we go about it???????
Thanks in advance
Senthil
Post edited by: senthil_teen, at: 2006/08/18 11:05
senthil_teen's picture
Joined: Aug 16 2006 - 2:06pm
Last seen: 17 years 1 month ago
First of all, 0.4.0 is totally outdated, actual Version is 1.2.5, go and get it from http://jasperforge.org/sf/projects/ireport

Then you can use subreport return values, like I wrote in the last post.
JulEgner's picture
1134
Joined: Aug 3 2006 - 10:59pm
Last seen: 17 years 1 month ago
Feedback