Show: Delphi C++
Display Preferences

Datasnap.DBClient.TCustomClientDataSet.Aggregates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Aggregates: TAggregates read FAggregates write SetAggregates;

C++

__property TAggregates* Aggregates = {read=FAggregates, write=SetAggregates};

Properties

Type Visibility Source Unit Parent
property protected
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

Lists all aggregates that apply to the client dataset.

Use Aggregates to define aggregates that summarize the data in the client dataset. Aggregates is a collection of TAggregate objects, each of which defines a formula for calculating an aggregate value from a group of records in the client dataset. The individual aggregates can summarize all the records in the client dataset or subgroups of records that have the same value on a set of fields. Aggregates that summarize a subgroup of records are associated with indexes, and can only be used when the associated index is current.

Do not use Aggregates to obtain summarized values maintained by the client dataset. Aggregates can contain TAggregate objects that are not currently active. Instead, use the ActiveAggs property, which represents only those TAggregate objects that are currently active.

Note: You do not need to add a TAggregate object to the Aggregates collection when you add an aggregate field using the Fields editor. The Fields editor automatically adds TAggregate objects to Aggregates for every aggregate field you define.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance