S
S
SergPro2018-04-09 12:02:47
1C-Bitrix
SergPro, 2018-04-09 12:02:47

How to get the value of an element property - bitrix?

I track the property change event. I get an array in this form:
5acb2ac239ae6494472741.png
I insert the necessary data like this: For some fields, for some reason, some kind of array identifier is generated for each IB element:
$arFields['PROPERTY_VALUES']['71']['0']['VALUE']

$arFields['PROPERTY_VALUES']['75']['2878']['VALUE']

'2878' - dynamic array identifier
Why is this happening? Maybe I'm doing something wrong? How to proceed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SergPro, 2018-04-09
@SergPro

Solved the problem this way:
The solution is really ugly. Perhaps it was better to collect a good array and immediately display $arFields['PROPERTY_VALUES']['75']['VALUE']

E
Eugene, 2018-04-09
@kutepovea

Why is this happening?

This is the property value id from the b_iblock_element_property table
The essence of the task is not clear, you can track it in different ways for different purposes

I
I'm Yoda, 2018-04-10
@Anadi

Actually, what do you want to do?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question