StoreSum

Properties

2
isStoreSum: Boolean= truereadonly
Identifies an object as an instance of StoreSum class, or subclass thereof.
isStoreSum: Boolean= truereadonlystatic
Identifies an object as an instance of StoreSum class, or subclass thereof.

Functions

5

Returns the average value for the specified field. Defaults to look through all locally available records in store

ParameterTypeDescription
fieldString

Field to calculate average value for

recordsModel[]

Records to process, uses all records if unspecified

Returns: Number

Returns sum by adding value of specified field for records in the group with the specified groupValue.

ParameterTypeDescription
groupValue*

The group to summarize

fieldString

Field to summarize by

Returns: Number -

Sum or null if store not grouped

Returns max value for the specified field, can be used with Date or Number values. Defaults to look through all locally available records in store

ParameterTypeDescription
fieldString

Field to find max value for

recordsModel[]

Records to process, uses all records if unspecified

Returns: Number | Date

Returns min value for the specified field, can be used with Date or Number values. Defaults to look through all locally available records in store

ParameterTypeDescription
fieldString

Field to find min value for

recordsModel[]

Records to process, uses all records if unspecified

Returns: Number | Date

Returns sum calculated by adding value of specified field for specified records. Defaults to using all locally available records in store

ParameterTypeDescription
fieldString

Field to summarize by

recordsModel[]

Records to summarize, uses all records if unspecified.

Returns: Number