I
I
Ilya M2019-05-30 17:46:03
1C-Bitrix
Ilya M, 2019-05-30 17:46:03

How to implement a custom property with several fields in Bitrix?

Good afternoon!
Please tell me how to implement a custom infoblock property with several fields in GetUserTypeDescription.
For example:
Product, Quantity
Product, Quantity
Product, Quantity

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Panteleev, 2019-07-10
@s_panteleev

If there are exactly 2 fields, you have 2 regular fields available when saving to the database: VALUE, DESCRIPTION- use them
If there are more than 2 fields, when saving to the database, execute serialize()in CIBlockProperty::ConvertToDB()and unserialize()inCIBlockProperty::ConvertFromDB()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question