D
D
demnagel2019-11-08 13:41:20
Bitrix24
demnagel, 2019-11-08 13:41:20

How to form a field with employees in main.ui.filter?

Hello colleagues, I'm building my own filter that will get into $arParams 'FILTER' in bitrix:main.ui.filter Code
example:

$APPLICATION->IncludeComponent('bitrix:main.ui.filter', '', [ 
    'FILTER_ID' => 'report_list', 
    'GRID_ID' => 'report_list', 
    'FILTER' => [  
        ['id' => 'IS_SPEND', 'name' => 'Тип операции', 'type' => 'list', 'items' => ['1' => 'Любой', '2' => 'Поступление', '3' => 'Списание'], 'params' => ['multiple' => 'Y']],
        ['id' => 'AMOUNT', 'name' => 'Сумма', 'type' => 'number'], 
        ['id' => 'PAYER_INN', 'name' => 'ИНН Плательщика', 'type' => 'number'], 
        ['id' => 'PAYER_NAME', 'name' => 'Плательщик', 'type' => 'string'], 
    ], 
    'ENABLE_LIVE_SEARCH' => true, 
    'ENABLE_LABEL' => true 
]);

I need to create a field in the filter that displays all employees when clicked (example - in tasks the 'Responsible' field), I can't find how to do it.
I ask you to suggest the structure of such a field (or the methods that are used for this) or give a link to the documentation where it is described.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Kosov, 2020-05-05
@mihailkosov

['id' => 'USER', 'name' => 'user', 'type' => 'dest_selector']
dest_selector type is responsible for the responsible selection window

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question