You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The filter mission is to limit the set of records that will be displayed in the list (in any list: related list, open list, the dictionary). The filter is a set of conditions the record must meet to be on the list. Filters can be configured with the condition builder.


Dynamic Filters

Dynamic filters extend the filters by the JS scripts executing ability. This ability is available in the list condition builder and in the dynamic reference qualifier condition builder.

Для того, чтобы создать новый динамический фильтр, необходимо создать запись в таблице sys_filter_option_dynamic (как?).

Скрипт (поле script) динамического фильтра обязан вернуть идентификатор записи или массив, состоящий из идентификаторов записи.

В конструкторе условий динамические фильтры доступны при выборе ссылочного поля и оператора ‘is dynamic’ (системное название ISDYNAMIC). При этом появится список доступных динамических фильтров.

При запуске фильтра в качестве значения условия, использующего оператор ‘is dynamic’, будет использоваться значение, которое вернет скрипт динамического фильтра.

  • No labels