OnCalc - ResetComponent problem (bug?)
Dear group,
I'm using a TppVariable to calculate the totals in a Group. This total
appears multipule time (subtotal). In the OnCalc of the variable I do the
following:
value := value +Query.FieldByName('COUNT').AsInteger;
The ResetComponent is: ppGroup2 (the owner of the variable)
The ResetType = veGroupEnd.
The CalcType = veDataPipelineTraversal
for Query.
Whats the problem:
When the total is calculated at the end of the page before then is the last
value this total used for the next page total. An example:
COUNT
3
2
10
TOTAL: 15
-----PAGE END----
-----START NEXT PAGE----
COUNT
1
4
2
TOTAL: 17 (= the 1+4+2= 7 from this page end the 10 from the previous page)
Somebody knows there's a bugfix for this? Or isnt it a bug?
I'm using: ReportBuilder 6.03 Professional
In anticipation much thanks.
Regards,
Hans van Dalen
the Netherlands.
I'm using a TppVariable to calculate the totals in a Group. This total
appears multipule time (subtotal). In the OnCalc of the variable I do the
following:
value := value +Query.FieldByName('COUNT').AsInteger;
The ResetComponent is: ppGroup2 (the owner of the variable)
The ResetType = veGroupEnd.
The CalcType = veDataPipelineTraversal
for Query.
Whats the problem:
When the total is calculated at the end of the page before then is the last
value this total used for the next page total. An example:
COUNT
3
2
10
TOTAL: 15
-----PAGE END----
-----START NEXT PAGE----
COUNT
1
4
2
TOTAL: 17 (= the 1+4+2= 7 from this page end the 10 from the previous page)
Somebody knows there's a bugfix for this? Or isnt it a bug?
I'm using: ReportBuilder 6.03 Professional
In anticipation much thanks.
Regards,
Hans van Dalen
the Netherlands.
This discussion has been closed.
Comments
This is not a known bug in ReportBuilder. As a test, try downloading a
trial version of ReportBuilder 7.03 and see if that helps. If not, please
send a small example demonstrating the issue in .zip fomat to
support@digital-metaphors.com and I'll take a look at it for you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com