Expressions
Path Operators
6min
JSONata path operators are used for navigating and accessing specific elements or properties within a data set.
The operators include:
Result | Expression |
Filter a list according to a value | =$filter(@ctx.datasources.filter-list, function($v){$contains($string($v.status), $string(@ctx.components.filter-list.state.filter != null ? @ctx.components.filter-list.state.filter:'')) })[] |
![Static filter Static filter](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/3_4ZHyfoqvLE8CUmHcoCg_img9730iphone13blueportrait.png?format=webp)
Static filter
In this example the Filter path operator is used to create a filter for data records marked as Active or Inactive. See the full code sample in GitHub.
Write an expression to add a search field when using static data. The character [] at the end is very important. Even one item only will be displayed.
Search: See the full code sample in GitHub.
![Search static data Search static data](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/j_q3THPfmpWfkzUBqoR4S_search1iphone13blueportrait.png?format=webp)
Search static data
![Search static data Search static data](https://images.archbee.com/x7vdIDH6-ScTprfmi2XXX/kxfQ-YPzrNiVWsXDgWXaf_search2iphone13blueportrait.png?format=webp)
Search static data
Updated 22 Feb 2024
![Doc contributor](https://s3.amazonaws.com/archbee-animals/rabbit.png)
Did this page help you?