Answer the question
In order to leave comments, you need to log in
How to change the property value of the Bitrix information block element?
Unable to change the property value of the information block element.
// the property is called moderation (there are 3 values) The
beginner did not fully understand the classes and methods, and the documentation does not help, because I did not catch something important
through Update, writes ..Call to undefined method _CIBElement: :Update()
via SetPropertyValuesEx
$res = CIBlockElement::GetList(array('id' => 'desc'), $arFilter, false, array("nPageSize" => 10), array());
?>
<form class="myform" action="" method="POST" id="moderation_form" enctype="multipart/form-data">
<?
while ($ads = $res->GetNextElement()) {
$arFields = $ads->GetFields(); // Поля
$arParams = $ads->GetProperties(); // Свойства
if(!$arParams['moderation']['VALUE_ENUM_ID']){
$re = $ads->SetPropertyValuesEx($arParams["ID"], array('VALUE_ENUM_ID' => 1052)); //
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question