I have created a report with CR9, detail as below:
Group1:name
Group2:Category ; total 6 categories(A,B,C,D,E,F in accsending order)
Group3:description
Report layout"
Group1 Header: name
Group2 Header: [Category description]
Group3 Footer: [Product Description] [amount]
Group2 FooterA: Total of [amount]
Group2 FooterB: Total of [amount] for Category A,B and C.
My problem is I only want Group2 FooterB appears:
after C if A and B existed
after B is only A & B
after A if only A or not shows up at all. (not all Category has data for the report)
I have tried to create a global var at Group2 Header to get all the header2 name:
if len(Category ) > 0 then
Category = Category & "," & GroupName ({table.Category })
else
Category = GroupName ({table.Category })
end if
and use the split() to find out what the next GroupName is and use the result as condition suppress.
It doesn't work because I can't get the next groupName before the report pass throught the current group.
I know I can use a subreport to get the information. I am not allow to use subreport because of the performance issue.
Any idea?
Thanks.
Group1:name
Group2:Category ; total 6 categories(A,B,C,D,E,F in accsending order)
Group3:description
Report layout"
Group1 Header: name
Group2 Header: [Category description]
Group3 Footer: [Product Description] [amount]
Group2 FooterA: Total of [amount]
Group2 FooterB: Total of [amount] for Category A,B and C.
My problem is I only want Group2 FooterB appears:
after C if A and B existed
after B is only A & B
after A if only A or not shows up at all. (not all Category has data for the report)
I have tried to create a global var at Group2 Header to get all the header2 name:
if len(Category ) > 0 then
Category = Category & "," & GroupName ({table.Category })
else
Category = GroupName ({table.Category })
end if
and use the split() to find out what the next GroupName is and use the result as condition suppress.
It doesn't work because I can't get the next groupName before the report pass throught the current group.
I know I can use a subreport to get the information. I am not allow to use subreport because of the performance issue.
Any idea?
Thanks.