Type parameters
-
T: ItemData
Hierarchy
- StaticApplicationFieldData
Properties
clearFilter
The method removes the filter from an App type field.
Context.fields.cars.data.clearFilter();
Type declaration
-
Returns void
setFilter
The method is used to create a filter for an App type field.
It should be noted that the method creates a filter for the field, not for the current form or business process. This means that
if you don’t need filtering anymore, you need to use clearFilter.
The argument of this method is a function that takes CollFilterClosure
.
In CollFilterClosure
, you can access the app’s fields, the current context, and global filter functions.
In the example below, appFields
are the app’s fields, context
is the current context (for example, of a business process), globalFilters
is for the global filter functions .
Context.fields.cars. data.setFilter((appFields, context, globalFilters) => globalFilters.and(
appFields.enabled.eq(true),
appFields.year_of_issue.gte(context. year)
));
Type declaration
-
Parameters
-
fc: CollFilterClosure<T>
Returns void
-
Managing of data in a field