using variable to calculate TOTAL
Posted: Thu May 12, 2016 12:56 am
I have a report with the following structure:
Header
Group Header
Data Band
Group Footer
Footer
Now Data band has an amount being displayed and I use a variable to calculate total for each group, So on Data Band Rendering:-
vTotal += dsBQItem.REVISEDAMT;
My Requirement is I display this on Group Header, Not on Group footer.
I do not want to use SUM function..
However the variable vTotal is not calculated yet when group header is printed. so always it gets printed as 0.
It gets calculated only when data band is actually printed, but by this time group header was already printed with a 0 vTotal variable.
How can I achieve this requirement? Is it possible to do that?
Thanks
Header
Group Header
Data Band
Group Footer
Footer
Now Data band has an amount being displayed and I use a variable to calculate total for each group, So on Data Band Rendering:-
vTotal += dsBQItem.REVISEDAMT;
My Requirement is I display this on Group Header, Not on Group footer.
I do not want to use SUM function..
However the variable vTotal is not calculated yet when group header is printed. so always it gets printed as 0.
It gets calculated only when data band is actually printed, but by this time group header was already printed with a 0 vTotal variable.
How can I achieve this requirement? Is it possible to do that?
Thanks