AdaptableQL Expression Technical Reference

Summary

  • Expression Options contains many properties to configure AdapTableQl and Expressions
  • The Expression API section of AdapTable API provides run-time access to Expressions

Expression Options

The ExpressionOptions section of Adaptable Options contains options for using AdapTableQL Expressions:

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)

Expression API

Expression API section of Adaptable API contains functions which enable run-time access of AdapTableQL.

MethodDescription
getAdaptableQueryExpression(query)Returns Expression string of given AdaptableQuery: can be Boolean, AggregatedBoolean, Scalar, AggregatedScalar or Observable
getAdaptableQueryExpressionWithColumnFriendlyNames(query)Returns Expression string of given AdaptableQuery with column friendly names (instead of Column IDs)
getASTForExpression(expression)Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
getColumnsFromExpression(expression)Returns all Columns referenced in an Expression
isColumnQueryable(abColumn)Returns whether a Column is Queryable
isValidAggregatedBooleanExpression(expression, module, validationErrorMessage)Whether the given AggregatedBooleanExpression is valid
isValidAggregatedScalarExpression(expression, module, validationErrorMessage)Whether the given AggregatedScalarExpression is valid
isValidBooleanExpression(expression, module, validationErrorMessage)Whether the given BooleanExpression is valid
isValidObservableExpression(expression, module, validationErrorMessage)Whether the given ObservableExpression is valid
useCaseSensitivity()Whether Expressions are evaluated using Case Sensitivity