Type parameters

Hierarchy

Properties

clearFilter

clearFilter: function

The method removes the filter from an App type field.

 Context.fields.cars.data.clearFilter();

Type declaration

    • (): void
    • Returns void

setFilter

setFilter: function

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

    • (fc: CollFilterClosure<T>): void
    • Parameters

      • fc: CollFilterClosure<T>

      Returns void