CalculatedField Class

A calculated field that allows you to apply complex expressions to data fields obtained from the data source.

Declaration

export class CalculatedField extends SerializableModel

Remarks

The DevExpress Dashboard allows you to create calculated fields for the following data source types:

Use the DataSource.calculatedFields property to manage the specified data source's calculated fields.

Inheritance

SerializableModel
CalculatedField
See Also

constructor

Initializes a new instance of the CalculatedField class.

Declaration

constructor(modelJson?: any, serializer?: DevExpress.Analytics.Utils.ModelSerializer)

Optional Parameters

Name Type Default Description
modelJson any null

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer null

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

dataMember Property

Declaration

dataMember: ko.Observable<string>

Property Value

Type Description
ko.Observable<string>

expression Property

Declaration

expression: ko.Observable<string>

Property Value

Type Description
ko.Observable<string>

fieldType Property

Declaration

fieldType: ko.Observable<string>

Property Value

Type Description
ko.Observable<string>

name Property

Declaration

name: ko.Observable<string>

Property Value

Type Description
ko.Observable<string>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.