How to adjust the filter property in the calendar of events Bitrix?

working example
$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID,"ACTIVE" => "Y", ">=DATE_ACTIVE_FROM" => $curdate, "PROPERTY" => array('ADD_TO_EVENTS' => array('VALUE' => 'Y')), "<=DATE_ACTIVE_FROM" => $curdatelast);


not working
$arFilterDate = Array(
 "IBLOCK_ID" => $IBLOCK_ID,
 "ACTIVE" => "Y", 
 ">=DATE_ACTIVE_FROM" => $curdate, 
 "PROPERTY" => array('DATA_SOBYTIYA' => array('VALUE' => true)), 
 "<=DATE_ACTIVE_FROM" => $curdatelast
 );


How to register filr "not working", so he deduced DATA_SOBYTIYA when it is filled

there are many examples, but there is no one with "empty" "not empty"
dev.1c-bitrix.ru/learning/course/?COURSE_ID=43&LES...

probably need more info
-------------------------------
properties are taken from component and put in the calendar
$IBLOCK_ID = intval($arParams['IBLOCK_ID']);
 //print $IBLOCK_ID;
if(!CModule::IncludeModule("iblock"))
 die('module iblock is not included!');
 $arSort = Array("SORT"=>"ASC", "NAME"=>"ASC");
 $arSelect = Array("ID","NAME","PROPERTY_DATA_SOBYTIYA");
 $arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID,"ACTIVE" => "Y", ">=DATE_ACTIVE_FROM" => $curdate, "PROPERTY" => array('ADD_TO_EVENTS' => array('VALUE' => 'Y')), "<=DATE_ACTIVE_FROM" => $curdatelast);
 $arFilterDate = Array(
 "IBLOCK_ID" => $IBLOCK_ID,
 "ACTIVE" => "Y", 
 ">=DATE_ACTIVE_FROM" => $curdate, 
 "!PROPERTY" => array('DATA_SOBYTIYA' => array('VALUE' => false)), 
 "<=DATE_ACTIVE_FROM" => $curdatelast
);
 $obIBlockResult = CIBlockElement::GetList($arSort, $arFilter, false, false, $arSelect);
 $arFilter = $obIBlockResult->GetNext();
 $sProperty = $arFilterDate;//["PROPERTY_DATA_SOBYTIYA_VALUE"];
...
 $arDay["events"][] = array(
"time"=>$eTime,
"url"=>$dayNews["DETAIL_PAGE_URL"],
"title"=>$title,
"preview"=>$sTitle,
 "property"=>$sProperty,//property should something pass 
$arParams["DATE_FIELD"]=>$dayNews[$arParams["DATE_FIELD"]],
 );

Vardan
array(4) {
["day"]=>
int(18)
["td_class"]=>
 string(14) "NewsCalWeekend"
["tday_class"]=>
 string(10) "NewsCalDay"
["events"]=>
 array(1) {
[0]=>
 array(6) {
["time"]=>
 string(11) "19:17 "
["url"]=>
 string(56) "/address/"
["title"]=>
 string(92) "sadfsadfsadfds"
["preview"]=>
 string(190) "выавфыаывфавыаываывфаывавыаывфавыа.."
["property"]=>
 array(5) {
["IBLOCK_ID"]=>
int(31)
["ACTIVE"]=>
 string(1) "Y"
[">=DATE_ACTIVE_FROM"]=>
NULL
["PROPERTY"]=>
 array(1) {
["DATA_SOBYTIYA"]=>
 array(1) {
["VALUE"]=>
bool(true)
}
}
["<=DATE_ACTIVE_FROM"]=>
NULL
}
["DATE_ACTIVE_FROM"]=>
 string(19) "18.06.2016 19:17:00"
}
}
 }
July 8th 19 at 11:14
1 answer
July 8th 19 at 11:16
Solution
$arrFilter['!PROPERTY_<code> properties'] = false;

check for filled
Can review the details of the question, I think I incorrectly formulated it. T. K. was confused. - Hattie.Purdy28 commented on July 8th 19 at 11:19

Find more questions by tags 1C-BitrixPHP