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

Incorrect totals with TppVariable

edited January 2002 in General
Dear sirs.

I have problems with usage the component ppVariable.
I can not receive correct results of the group totals
I have created the very simple report with one group, in which has placed
ppVariable1 on GroupFooter Band.
In the "Timing" dialog I set the following values (as it is recommended in
your manual in section " Conditional Group Total "):

Calculate on = DataPipeline Traversal
Data Pipeline = my pipeline
Reset on = Group Start
Group = my group

I have written the handler of event OnCalc:

procedure TForm1.ppVariable1Calc (Sender: TObject; var Value: Variant);
begin
Value:=Value+OracleDataSet1.FieldByName('Amount').Value;
end;

In result, I see incorrect total values! After small researches I have
detected, that the OnReset event fires after retrieving the first record
from a data set and first processing OnCalc event, therefore the first value
is lost!
How I can receive correct total values with usage TppVariable?

I use RB Pro 5.55, Delphi5 and DOA 3.4.5.

Thanks,
Oleg Bokanov

Comments

  • edited January 2002
    Try resetting OnGroupEnd.

    I don't recall any specific fixes to the TppVariable since 5.55, but I would
    recommend upgrading to RB 6.03 to see if that fixes the problem. It is a
    free upgrade. Contact info@digital-metaphors.com with your full registration
    information.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.