CalculatedField Class
In This Article
A calculated field that allows you to apply complex expressions to data fields obtained from the data source.
#Declaration
TypeScript
export class CalculatedField extends SerializableModel
#Remarks
The DevExpress Dashboard allows you to create calculated fields for the following data source types:
- DashboardSqlDataSource
- DashboardOlapDataSource
- DashboardExcelDataSource
- DashboardEFDataSource
- DashboardObjectDataSource
- DashboardExtractDataSource
- DashboardFederationDataSource
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
TypeScript
constructor(
modelJson?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer
)
#Parameters
Name | Type | Description |
---|---|---|
model |
any | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | Model |
An object used for dashboard deserialization. Do not pass this parameter directly. |
#Properties
#dataMember Property
#Declaration
TypeScript
dataMember: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |
#expression Property
#Declaration
TypeScript
expression: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |
#fieldType Property
#Declaration
TypeScript
fieldType: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |
#name Property
#Declaration
TypeScript
name: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |
#Methods
#getInfo Method
For internal use.
#Declaration
TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
#Returns
Type | Description |
---|---|
ISerialization |
An array of objects that provide serialization info. |