A
A
AlexCruel2021-04-17 12:36:09
1C
AlexCruel, 2021-04-17 12:36:09

How to write the received value in the input field?

ЭтаФорма.Элементы.Реквизит1.????? = Строка(ФормаОбъектаСсылки.Объект.Код);


I receive "Code", I want to write down in "Props1". I can't find properties like text. How to write a value and then retrieve it from the input field?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kinash, 2021-04-18
@AlexCruel

How to write a value and then retrieve it from the input field?

It is necessary not to record and retrieve from the input field, but to record and retrieve from the attribute with which the input field is associated. An input field is a GUI element for the user to manipulate the values ​​of the props. We work directly programmatically:
Attribute1 = String(LinkObjectForm.Object.Code);
or if it is not a form attribute, but an object attribute:
Object.Attribute1 = String(LinkObjectForm.Object.Code);

K
Konstantin, 2021-04-17
@fosihas

1C: Programming for beginners For children and parents ...
ps:
there is such a thing as a debugger, you can see what value this attribute has

V
VitalyChaikin, 2021-04-19
@VitalyChaikin

ЭтотОбъект.МойРеквизит = 0;  // Пишем в реквизит объекта
ЭтаФорма.МойРеквизит = 0;  // Пишем в реквизит Формы
ЭтаФорма.Элементы.МойРеквизит.Доступность = Истина;  // Устанавливаем доступность элемента (поле ввода)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question