I
I
ITF2021-10-27 20:25:10
1C-Enterprise
ITF, 2021-10-27 20:25:10

How to make a case selection field?

I'm trying to make a form on which there is a selection field - in this selection field there is a list of all registers.
There is no data type like "ReferenceReference", so I put "ValueList" in the field.
There is a function:

&НаСервере           
Функция ПолучитьСписокРегистров()
  
  СписокРегистров = Новый СписокЗначений;
    НаборРегистров = Метаданные.регистрыСведений;
  Для каждого ЗаписьНабораРегистров из НаборРегистров Цикл
    СписокРегистров.Добавить(ЗаписьНабораРегистров); 
  КонецЦикла;
  
  Возврат СписокРегистров;
КонецФункции


But since the work goes with the list of metadata, it is performed on the server, and I can’t figure out how to transfer this list of values ​​\u200b\u200bin the selection field to me.
I tried to add a call in the OnOpen procedure (on the client), but I can't reach the "FormElements"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Nagibovich, 2021-10-28
@nki

Pass the register name, not metadata.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question