OnTraversal Event
In the help for the OnTraversal event it says that if there are 10 records,
the OnTraversal will be called 10 times.
I have noticed that this is not the case as it will be called again in page
breaks. One report I have has 77 records split over 3 pages. The OnTraversal
is called 79 times i.e. one extra per new page.
I am currently using version 11.04.
Some of our reports use the OnTraversal to work out totals in ppVar calc
fields, so are being miscalculated.
Is this a known issue?
Thanks,
Tim
the OnTraversal will be called 10 times.
I have noticed that this is not the case as it will be called again in page
breaks. One report I have has 77 records split over 3 pages. The OnTraversal
is called 79 times i.e. one extra per new page.
I am currently using version 11.04.
Some of our reports use the OnTraversal to work out totals in ppVar calc
fields, so are being miscalculated.
Is this a known issue?
Thanks,
Tim
This discussion has been closed.
Comments
Calculations should always be made inside the TppVariable.OnCalc event.
This is the only event that is guaranteed to fire only once per record when
set to do so.
http://www.digital-metaphors.com:8080/Delphi_Code/Calculations/Overview
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com