Calculating totals.
Hi,
I have a dataset and I want at the top of the report (in a title) to get
the count of the records if a certain field has a certain value. For
example, for every record, if ppDBText1.value := 'Incoming', I add to the
count.
Is it possible to do this without writing any code (i.e. set some properties
in a component such as ppDBCalc1 which has DBCalcType set to dcCount).??
Thanks
Sham.
I have a dataset and I want at the top of the report (in a title) to get
the count of the records if a certain field has a certain value. For
example, for every record, if ppDBText1.value := 'Incoming', I add to the
count.
Is it possible to do this without writing any code (i.e. set some properties
in a component such as ppDBCalc1 which has DBCalcType set to dcCount).??
Thanks
Sham.
This discussion has been closed.
Comments
Use a TppVariable and code its OnCalc event to count (increment the Value
parameter by 1) when the report.datapipeline['fieldname'] := 'Incoming'; .
Then set the variable's LookAhead property to True.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com