multiple groups on same level

-1

Hi!

 

I'm trying to create a report with the following structure:

Group1 (CostAccountHead)

->Group2(CostAccountItem)

-->Group3.1(CostAccountValue)

-->Group3.2(VatDetails)

 

The CostAccountValue and VatDetails tables have the CostAccountItem in common, so i'd like to report them, grouped like this.

The problem is, i would like to list the CostAccountValue entries and then the VatDetails entries, like this:

 

Head1

Item1

Values:

value1

value2

 

VAT details

value1

value2

 

Item2

Values

...

VAT details

...

 

Head2

...

 

And so on. I am not able to put two groups after each other , only group in group.

I think two subreports are not the solution, b/c it then would be:

Head1

Item1

Values

Item2

Values

...

VAT

VAT

VAT

 

And so on. But, if i try to put them in one group, i think the outcome would be:

Head1

Item1

value1

VAT1

value2

VAT2

And that would be just bad.

 

Is there any solution? I've tried also in iReport and in the XML, not seeing the way out.

Should i just make two reports (or two subreports in one)? It would be very nice to see it the way i explained above.

 

Thanks

 

csaadaam's picture
Joined: Jul 29 2010 - 4:28am
Last seen: 9 years 4 months ago

3 Answers:

-1

I don't see why two subreports wouldn't do it.

You would have the master report iterate on CostAccountItems, and for each one subreport that lists CostAccountValue and a second one that lists VatDetails.

Regards,

Lucian

lucianc's picture
7156
Joined: Jul 17 2006 - 1:10am
Last seen: 1 day 17 hours ago
-1

Could you post some tutorial or example?

In all the tutorials i could find, i see only subreport after subreport, individually.

Thanks

csaadaam's picture
Joined: Jul 29 2010 - 4:28am
Last seen: 9 years 4 months ago
-1
I just found the right example.

Thank you very much for your help!
csaadaam's picture
Joined: Jul 29 2010 - 4:28am
Last seen: 9 years 4 months ago
Feedback
randomness