Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Calculating and Resetting Variables

edited April 2002 in General
Iam trying to optomise a report.

i have

Group1
Group2
Group3
detailband if x then V1 is set
footer3 V2 (must sum V1)
Footer2 V3 (must sum V2)
Footer1 V4 (must sum V3)

I cant get the V3 , V4 only to calculate when footer3 and footer2 are
called respectively . The only way i can get them to calculate is if
everyones calc type is traversal and is set to:

value := value + V1.value

but this is very inificient

i want the oncalc of V3 to be fired when the footer2 is reached and
V3.value := V3.Value + V2.Value (and V2 value must not have been
reset yet)

similarly

i want oncalc of V4 to be fired when the footer2 is reached and
V4.value := V4.Value + V3.Value (and V3 value must not have been
reset yet)

what should the respective cacltype and CalcCompnents be, and their
resettype and reset compenents.

Thanks

Ian robinson

Comments

This discussion has been closed.