Skip to main content
A newer version of this page is available. .

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

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

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

See Also

constructor

Initializes a new instance of the CalculatedField class.

Declaration

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

Parameters

Name Type Description
modelJson any

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

serializer DxDesigner.Analytics.Utils.ModelSerializer

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

Properties

dataMember Property

Declaration

dataMember: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

expression Property

Declaration

expression: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

fieldType Property

Declaration

fieldType: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

name Property

Declaration

name: KnockoutObservable<string>

Property Value

Type
KnockoutObservable<string>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationsInfo

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationsInfo