ExpressionOptions

Options for managing Expressions in AdapTable's Query Language

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
caseSensitiveExpressionsbooleanPerform case-sensitive text comparisons when evaluating Expressionsfalse
customAggregatedFunctionsRecord<string,AggregatedExpressionFunction> | ((context:GlobalExpressionFunctionsContext<string>) => Record<string,AggregatedExpressionFunction>)Bespoke Aggregated functions - to complement those provided by AdapTable
customBooleanFunctionsRecord<string,ExpressionFunction> | ((context:GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string,ExpressionFunction>)Custom Boolean Expression Functions available in AdapTableQLnull (none)
customQueryVariablesRecord<string, string | number | boolean | Date | ((context:CustomQueryVariableContext) => string | number | boolean | Date)>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
customScalarFunctionsRecord<string,ExpressionFunction> | ((context:GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string,ExpressionFunction>)Custom Scalar Expression Functions available in AdapTableQLnull (none)
displayColumnFriendlyNamesForExpressionsbooleanReference a Column's Header (i.e. FriendlyName) in all Expression overviews (instead of ColumnId)true
evaluateAdaptableQLExternally(context:EvaluateExpressionExternallyContext<TData>) => booleanWhether a Module (or specific expression) should be evaluated by AdapTableQLAll Modules are evaluated by AdapTable
fieldsAdaptableField[] | ((context:AdaptableFieldContext) =>AdaptableField[])Fields are items in Data Source that are NOT columns but can be used in Expressions (via FIELD keyword)
isColumnQueryable(queryableColumnContext:QueryableColumnContext) => booleanCan a given column be included in Expressions
maxTimeframeSizenumberMaximum time (in milliseconds) to hold a Data Change event in a trailing timeframe28800000 (~8 hours)
moduleExpressionFunctionsModuleExpressionFunctionsMap| ((context:ModuleExpressionFunctionsContext) =>ModuleExpressionFunctions | undefined)Module-specific Expression Functions availableundefined (defaults to available System & Custom values)
performExpressionValidationbooleanValidate Expressions before they can be run or savedtrue
systemAggregatedBooleanFunctionsAggregatedBooleanFunctionName[] | ((context:GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) =>AggregatedBooleanFunctionName[])System AggregatedBoolean Expression Functions available in AdapTableQLnull (sets all)
systemAggregatedScalarFunctionsAggregatedScalarFunctionName[] | ((context:GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) =>AggregatedScalarFunctionName[])System AggregatedScalar Expression Functions available in AdapTableQLundefined (sets all)
systemBooleanFunctionsBooleanFunctionName[] | ((context:GlobalExpressionFunctionsContext<BooleanFunctionName>) =>BooleanFunctionName[])System Boolean Expression Functions available in AdapTableQLnull (sets all)
systemObservableFunctionsObservableFunctionName[] | ((context:GlobalExpressionFunctionsContext<ObservableFunctionName>) =>ObservableFunctionName[])System Observable Expression Functions available in AdapTableQLnull (sets all)
systemScalarFunctionsScalarFunctionName[] | ((context:GlobalExpressionFunctionsContext<ScalarFunctionName>) =>ScalarFunctionName[])System 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[])