D
D
dskozin2015-08-19 11:44:25
1C-Bitrix
dskozin, 2015-08-19 11:44:25

Bitrix: how to form a filter that returns an array of properties of elements bound to the current one?

There is a certain infoblock element, to which several more elements of the same type are linked through multiple selection. It is necessary to form a filter so that GetList would return the data of all bound elements and the current element.
De facto, the situation is as follows - there is an information block of the event catalog, and when a new event is created, past events are attached to it through the element properties, so that reviews of past events are displayed in the reviews section of the new event (reviews are made through the forum.topic component).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2015-08-20
@dskozin

Better to make two requests. Firstly, I'm not sure that such a filter can be formed in principle, and secondly, even if it does, the final query will be terribly suboptimal.

Александр Маджугин, 2015-08-24
@Suntechnic

Как я понял у вас элементы инфоблока так подвязаны один к другому. Ну что сказать - не надо так делать. Это неверное архитектурное решение. Любое его развитие создаст еще целую гамму проблем.
Используйте для объединения похожих мероприятий теги. Они как раз для этого.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question