The method allows you to clear the filter on the App type field.
Context.fields.app_type.data.clearFilter();
Type declaration
(): void
Returns void
setFilter
setFilter:function
The method allows you to set a filter on an arbitrary app field.
Important: The method sets a filter at the field level, not for the current form or business process.
If filtering is no longer needed, use clearFilter.
The method takes a function as an argument, which accepts CollFilterClosure.
In FilterClosure you have access to the fileds of an arbitrary app, current context (e.g. of a business process), and global filter functions
In the example below:
Managing of data in a field
Hierarchy
Properties
clearFilter
The method allows you to clear the filter on the App type field.
Type declaration
Returns void
setFilter
The method allows you to set a filter on an arbitrary app field.
Important: The method sets a filter at the field level, not for the current form or business process. If filtering is no longer needed, use clearFilter. The method takes a function as an argument, which accepts
CollFilterClosure. InFilterClosureyou have access to the fileds of an arbitrary app, current context (e.g. of a business process), and global filter functions In the example below:refItemFieldsis the arbitrary app fields;contextis the current context;globalFiltersis the global filter functions.Context.fields.app_type.data. setFilter((refItemFields, context, globalFilters) => globalFilters.and( refItemFields.namespace.eq('my_namespace'), refItemFields.code. eq(context.code) ));Type declaration
Parameters
fc: CollFilterClosure<RefItemFilterClosure>
Returns void