ExpressionContext

View as Markdown

The context an Adaptable custom expression function handler is documented against: aql's host-agnostic accessors plus the Adaptable extras users legitimately need (adaptableApi, adaptableContext, …).

Evaluator plumbing (functions) and host internals (filterFn, namedQueryCallStack, pivot / override state) are deliberately absent — see AdaptableInternalExpressionContext. argNodes is the one piece of evaluator provenance kept public: it is the documented mechanism for a custom/extended handler to recover the column id behind an argument (see getExpressionArgColumnId), used by the system-function-override recipe.

TypeScript
export interface AdaptableExpressionContext extends BaseContext,
Extends

BaseContext, AqlExpressionContext

Properties

PropertyTypeDescription
argNodesAST_Expression[]Raw AST nodes of the current function's arguments, index-aligned with
the evaluated args array. Best-effort: undefined for computed args
(e.g. LOWER([make])). Use with getExpressionArgColumnId to recover
subject provenance — e.g. to fetch a column's raw value from within a
custom/extended handler.
columnScopestringColumn a scoped rule applies to — the subject of $SCOPE. Present only
where the calling module supplies a scope (ColumnFilter, Badge, …).
adaptableContextanyCustom application Context provided in AdaptableOptions.adaptableContext

Property Details

argNodes

Raw AST nodes of the current function's arguments, index-aligned with the evaluated args array. Best-effort: undefined for computed args (e.g. LOWER([make])). Use with getExpressionArgColumnId to recover subject provenance — e.g. to fetch a column's raw value from within a custom/extended handler.

TypeScript
argNodes?: AST_Expression[];
Property Value

AST_Expression[]

columnScope

Column a scoped rule applies to — the subject of $SCOPE. Present only where the calling module supplies a scope (ColumnFilter, Badge, …).

TypeScript
columnScope?: string;
Property Value

string

adaptableContext

Inherited from BaseContext

Custom application Context provided in AdaptableOptions.adaptableContext

TypeScript
adaptableContext: any;
Property Value

any