From RAD Studio API Documentation
Jump to: navigation, search


property Aggregates: TAggregates read FAggregates write SetAggregates;


__property Aggregates;


Type Visibility Source Unit Parent
property published
Datasnap.DBClient TClientDataSet


Lists all aggregates that apply to the client dataset.

Datasnap.DBClient.TClientDataSet.Aggregates inherits from Datasnap.DBClient.TCustomClientDataSet.Aggregates. All content below this line refers to Datasnap.DBClient.TCustomClientDataSet.Aggregates.

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