Answer the question
In order to leave comments, you need to log in
How to set up a record filter for bitrix?
For some reason, the filter does not work, I specify in the filter:
$arParams["FILTER_NAME"] = array("!ID"=>ID Определенной записи);
"USE_FILTER" => "Y",
Answer the question
In order to leave comments, you need to log in
If you carefully read the documentation, and also take into account the name of the parameter, it becomes clear that the FILTER_NAME parameter should be passed not a filter, but the name of the filter.
The filter itself should be declared global (with the name that is passed) and formed separately.
global $arSomeFilterName;
$arSomeFilterName = array('ID'=>1);
$arParams["FILTER_NAME"] = 'arSomeFilterName';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question