Expression builder utility
The ExpressionBuilder is a utility class to build criteria objects that are used with the CriteriaBuilder.
warning
This section covers the Expression Builder utility - which is used to build Grid and Chart filter criteria.
There is a separate UI input component of the same name - which is used for defining arbitrary expressions. This component is covered in a separate section.
Methods
| Method | Description | Params | Return value | Example |
|---|---|---|---|---|
| withField | Sets the field in the expression object | string | ExpressionBuilder | |
| withValue | Sets the value the expression is tested against | unknown (can be string, boolean or number) | ExpressionBuilder | |
| withSerialiser | Sets the serialiser type on the expression | Serialiser | ExpressionBuilder | |
| withGroup | ToDo What does group do | string | ExpressionBuilder | |
| Build | Creates an Expression object based on the values sret | none | Expression | |