...
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.
In Condition Builder, dynamic filters are available when selecting the reference field and the 'is dynamic' operator (system name is ISDYNAMIC). After this, the list of available dynamic filters will appear.
When executing the filter as a value of the condition using the 'is dynamic' operator, the value returned by the dynamic filter script will be used.
To create a new dynamic filter, please complete the following steps (a new record in the Для того, чтобы создать новый динамический фильтр, необходимо создать запись в таблице sys_filter_option_dynamic (как?). will be created):
- Navigate to the
- Click New, fill in the form, and then click Save.
Dynamic filters form fields
Скрипт (поле script) динамического фильтра обязан вернуть идентификатор записи или массив, состоящий из идентификаторов записи.
В конструкторе условий динамические фильтры доступны при выборе ссылочного поля и оператора ‘is dynamic’ (системное название ISDYNAMIC). При этом появится список доступных динамических фильтров.
При запуске фильтра в качестве значения условия, использующего оператор ‘is dynamic’, будет использоваться значение, которое вернет скрипт динамического фильтра.