RefItemFieldData

Hierarchy

  • RefItemFieldData

Properties

clearFilter

clearFilter: function

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:

  • refItemFields is the arbitrary app fields;
  • context is the current context;
  • globalFilters is 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