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

ppVariable Calculation Problem

edited September 2003 in General
I'm still having problems understanding the ppVariable and the
CalcComponent, CalcType, ResetComponent, and ResetType. The report is
comprised of one group, the detail has a field called amount that is a field
in the database. In the GroupFooter is a ppVariable that needs to
conditionally add up the amount field from the detail and reset for each
group. I have the following properties on the ppVariable

CalcComponent-pipeline of detail band
CalcType-veDataPipelineTraversal

ResetCalcComponent-ppGroup1
ResetType-veGroupStart

The OnCalc event is currently just adding the amount field from the dataset
Value := Value + Table.FieldByName('Amount').AsCurrency

The ppVariable values are not correct. In fact I cannot figure out how they
are calculated.


Thanks

Comments

This discussion has been closed.