Custom Expression Functions
Summary
- Custom Expression Functions are AdapTableQL Expression Functions provided by developers at design-time
- They are registered with the AdapTableQL evaluation engine and available for use in AdapTable
- They can be Standard (single-row) or Aggregated (multiple-rows)
- They are also listed in the Expression Editor with full help
- Custom Expression Functions may be provided only to specific Adaptable Modules
AdapTableQL ships with a huge range of Expression Functions.
These allow run-time users to create powerful, and sometimes very complex queries.
However, where necessary, AdapTableQL can be extended through bespoke, custom, expression functions.
Note
Custom Expression Functions complement the AdapTableQL Expression Functions available in AdapTable
Custom Expression functions return a single value, either a boolean (ie. true / false) or other value.
They can be divided into 2 types:
- Standard Functions - evaluate on a single AG Grid row
- Aggregation Functions - evaluate against a set of AG Grid rows
There are no Custom Observable Functions — Observable history readers are shipped Functions only.
| Module | Standard | Aggregation |
|---|---|---|
| Alerts | ✅ | ✅ |
| Calculated Column | ✅ | ✅ |
| Column Filter | ✅ | |
| Export | ✅ | |
| Flashing Cell | ✅ | |
| Format Column | ✅ | |
| Grid Filter | ✅ | |
| Named Query | ✅ | |
| Plus Minus | ✅ | |
| Styled Column | ✅ |
Setting Function Scope
By default a Custom Expression Function is available in all Modules that host that kind of Expression.
There are 2 ways in which this default scope can be restricted:
- using the
isAvailableproperty in the Function object - doing a global setting using the isExpressionFunctionAvailable property in Expression Options
Find Out More
See Setting Custom Function Scope for full details
FAQ
Can I provide an asynchronous Custom Expression Function? Not at the moment but this is something in the pipeline and likely to be available in future releases.