Question on 1C 8.3, managed forms. Given 2 reference. One - with a tabular part in the form of an element.
The second, subordinate to the first - with an input field of type List of values, in which it should be possible to choose values from one of the columns of the table part of the first reference book.
I decided to take the tabular part, isolate the data from one column into the array and transfer it to the list of values. It turned out something like this:
&НаСервереБезКонтекста Функция Реквизит1НачалоВыбораНаСервере(Владелец) ТЗ = Владелец.БлокСекцииТабло.Выгрузить(); Массив = ТЗ.ВыгрузитьКолонку("БлокСекция"); Возврат Массив; КонецФункции &НаКлиенте Процедура Реквизит1НачалоВыбора(Элемент, ДанныеВыбора, СтандартнаяОбработка) Владелец = ЭтаФорма.Объект.Владелец.Ссылка; Массив = Реквизит1НачалоВыбораНаСервере(Владелец); Элементы.Реквизит1.СписокВыбора.Очистить(); Элементы.Реквизит1.СписокВыбора.ЗагрузитьЗначения(Массив); КонецПроцедуры As a result, the data is taken, when I click on the selection from the drop-down list, the values I need appear in it. But when choosing any of them, the field is still empty.
Where could I be mistaken, and what else can I add / remove to solve the problem?