ExpressionContext
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.
export interface AdaptableExpressionContext extends BaseContext,Extends
BaseContext, AqlExpressionContext
Properties
| Property | Type | Description |
|---|---|---|
| argNodes | AST_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 recoversubject provenance — e.g. to fetch a column's raw value from within a custom/extended handler. |
| columnScope | string | Column a scoped rule applies to — the subject of $SCOPE. Present onlywhere the calling module supplies a scope (ColumnFilter, Badge, …). |
| adaptableContext | any | Custom 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.
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, …).
columnScope?: string;Property Value
string
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
adaptableContext: any;Property Value
any