selecting a break dynamically [message #62043] |
Wed, 27 July 2005 07:32 |
Eclipse User |
|
|
|
Originally posted by: carlos.grahl.senior.com.br
Hi, all!!
I need to solve this situation:
I have an orders report, which have this layout:
------------------------------------------------------------ -------
customer
------------------------------------------------------------ -------
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
------------------------------------------------------------ -------
customer
------------------------------------------------------------ -------
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
...
a simple master-detail report. But it can have ALSO this layout:
------------------------------------------------------------ ------
productCategory
------------------------------------------------------------ ------
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
------------------------------------------------------------ ------
productCategory
------------------------------------------------------------ ------
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
orderNumber orderQty orderTotal
The same detail line, but with another "GROUP BY" clause. IŽm thinking in
solve this problem this way:
Create a ReportParameter, which contains the group selection (1 - group by
order, 2 - group by category)
Create a table, with
1 header
2 group headers
1 detail
2 group footers
1 footer
(is that possible?)
and, using the visibility expression of the group headers, select which
group header and which group footer will be printed, based on the
reportParameter filled by the user.
(This is a ficticious report, just to explain the problem. But the problem
is real... :-)
Thanks in advance
Carlos Augusto Grahl
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds