ExpressionOptions

Options for managing Expressions in AdapTable's Query Language

TypeScript
export interface

Properties

PropertyDescriptionDefault
caseSensitiveExpressionsPerform case-sensitive text comparisons when evaluating Expressionsfalse
customAggregatedFunctionsBespoke Aggregated functions - to complement those provided by AdapTable
customBooleanFunctionsCustom Boolean Expression Functions available in AdapTableQLnull (none)
customQueryVariablesValues to be attached to variables so that a single value can easily be expressed multiple times within a query, or quickly changed to affect the results of a query; evaluated synchronously with each expression evaluation
customScalarFunctionsCustom Scalar Expression Functions available in AdapTableQLnull (none)
displayColumnFriendlyNamesForExpressionsReference a Column's Header (i.e. FriendlyName) in all Expression overviews (instead of ColumnId)true
evaluateAdaptableQLExternallyWhether a Module (or specific expression) should be evaluated by AdapTableQLAll Modules are evaluated by AdapTable
fieldsFields are items in Data Source that are NOT columns but can be used in Expressions (via FIELD keyword)
isColumnQueryableCan a given column be included in Expressions
maxTimeframeSizeMaximum time (in milliseconds) to hold a Data Change event in a trailing timeframe28800000 (~8 hours)
moduleExpressionFunctionsModule-specific Expression Functions availableundefined (defaults to available System & Custom values)
performExpressionValidationValidate Expressions before they can be run or savedtrue
systemAggregatedBooleanFunctionsSystem AggregatedBoolean Expression Functions available in AdapTableQLnull (sets all)
systemAggregatedScalarFunctionsSystem AggregatedScalar Expression Functions available in AdapTableQLundefined (sets all)
systemBooleanFunctionsSystem Boolean Expression Functions available in AdapTableQLnull (sets all)
systemObservableFunctionsSystem Observable Expression Functions available in AdapTableQLnull (sets all)
systemScalarFunctionsSystem Scalar Expression Functions available in AdapTableQLnull (sets all)

Property Details

caseSensitiveExpressions

Perform case-sensitive text comparisons when evaluating Expressions

TypeScript
caseSensitiveExpressions?: boolean;
Default Value

false

Property Value

boolean

customAggregatedFunctions

Bespoke Aggregated functions - to complement those provided by AdapTable

TypeScript
customAggregatedFunctions?: Record<string, AggregatedExpressionFunction> | ((context: GlobalExpressionFunctionsContext<string>) => Record<string, AggregatedExpressionFunction>);
Property Value

Record<string,AggregatedExpressionFunction> | ((context:GlobalExpressionFunctionsContext<string>) => Record<string,AggregatedExpressionFunction>)

customBooleanFunctions

Custom Boolean Expression Functions available in AdapTableQL

TypeScript
customBooleanFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string, ExpressionFunction>);
Default Value

null (none)

Property Value

Record<string,ExpressionFunction> | ((context:GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string,ExpressionFunction>)

customQueryVariables

Values to be attached to variables so that a single value can easily be expressed multiple times within a query, or quickly changed to affect the results of a query; evaluated synchronously with each expression evaluation

TypeScript
customQueryVariables?: Record<string, string | number | boolean | Date | ((context: CustomQueryVariableContext) => string | number | boolean | Date)>;
Property Value

Record<string, string | number | boolean | Date | ((context:CustomQueryVariableContext) => string | number | boolean | Date)>

customScalarFunctions

Custom Scalar Expression Functions available in AdapTableQL

TypeScript
customScalarFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string, ExpressionFunction>);
Default Value

null (none)

Property Value

Record<string,ExpressionFunction> | ((context:GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string,ExpressionFunction>)

displayColumnFriendlyNamesForExpressions

Reference a Column's Header (i.e. FriendlyName) in all Expression overviews (instead of ColumnId)

TypeScript
displayColumnFriendlyNamesForExpressions?: boolean;
Default Value

true

Property Value

boolean

evaluateAdaptableQLExternally

Whether a Module (or specific expression) should be evaluated by AdapTableQL

TypeScript
evaluateAdaptableQLExternally?: (context: EvaluateExpressionExternallyContext<TData>) => boolean;
Default Value

All Modules are evaluated by AdapTable

Property Value

(context:EvaluateExpressionExternallyContext<TData>) => boolean

fields

Fields are items in Data Source that are NOT columns but can be used in Expressions (via FIELD keyword)

TypeScript
fields?: AdaptableField[] | ((context: AdaptableFieldContext) => AdaptableField[]);
Property Value

AdaptableField[] | ((context:AdaptableFieldContext) =>AdaptableField[])

isColumnQueryable

Can a given column be included in Expressions

TypeScript
isColumnQueryable?: (queryableColumnContext: QueryableColumnContext) => boolean;
Property Value

(queryableColumnContext:QueryableColumnContext) => boolean

maxTimeframeSize

Maximum time (in milliseconds) to hold a Data Change event in a trailing timeframe

TypeScript
maxTimeframeSize?: number;
Default Value

28800000 (~8 hours)

Property Value

number

moduleExpressionFunctions

Module-specific Expression Functions available

TypeScript
moduleExpressionFunctions?: ModuleExpressionFunctionsMap | ((context: ModuleExpressionFunctionsContext) => ModuleExpressionFunctions | undefined);
Default Value

undefined (defaults to available System & Custom values)

Property Value

ModuleExpressionFunctionsMap| ((context:ModuleExpressionFunctionsContext) =>ModuleExpressionFunctions | undefined)

performExpressionValidation

Validate Expressions before they can be run or saved

TypeScript
performExpressionValidation?: boolean;
Default Value

true

Property Value

boolean

systemAggregatedBooleanFunctions

System AggregatedBoolean Expression Functions available in AdapTableQL

TypeScript
systemAggregatedBooleanFunctions?: AggregatedBooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) => AggregatedBooleanFunctionName[]);
Default Value

null (sets all)

Property Value

AggregatedBooleanFunctionName[] | ((context:GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) =>AggregatedBooleanFunctionName[])

systemAggregatedScalarFunctions

System AggregatedScalar Expression Functions available in AdapTableQL

TypeScript
systemAggregatedScalarFunctions?: AggregatedScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) => AggregatedScalarFunctionName[]);
Default Value

undefined (sets all)

Property Value

AggregatedScalarFunctionName[] | ((context:GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) =>AggregatedScalarFunctionName[])

systemBooleanFunctions

System Boolean Expression Functions available in AdapTableQL

TypeScript
systemBooleanFunctions?: BooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => BooleanFunctionName[]);
Default Value

null (sets all)

Property Value

BooleanFunctionName[] | ((context:GlobalExpressionFunctionsContext<BooleanFunctionName>) =>BooleanFunctionName[])

systemObservableFunctions

System Observable Expression Functions available in AdapTableQL

TypeScript
systemObservableFunctions?: ObservableFunctionName[] | ((context: GlobalExpressionFunctionsContext<ObservableFunctionName>) => ObservableFunctionName[]);
Default Value

null (sets all)

Property Value

ObservableFunctionName[] | ((context:GlobalExpressionFunctionsContext<ObservableFunctionName>) =>ObservableFunctionName[])

systemScalarFunctions

System Scalar Expression Functions available in AdapTableQL

TypeScript
systemScalarFunctions?: ScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => ScalarFunctionName[]);
Default Value

null (sets all)

Property Value

ScalarFunctionName[] | ((context:GlobalExpressionFunctionsContext<ScalarFunctionName>) =>ScalarFunctionName[])