I
I
Ivan Melnikov2019-03-25 11:10:14
1C-Enterprise
Ivan Melnikov, 2019-03-25 11:10:14

How to access the attribute of this directory from the form module of the directory element? And how to access the form element associated with this attribute?

1C 8.3, SCP 1.3 (regular application).
There is a reference book Nomenclature . How to access (get the value) the attribute of the same directory from the element form module of this directory?
And how to access the input field on the form element?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kinash, 2019-03-25
@immelnikoff

On regular forms (not controlled), the context of the main attribute (in this case, Object.Nomenclature Directory) complements the context of the form itself. Those. if you do not explicitly define the Article, Item Group, etc. variables in the text of the form module. , and immediately start reading them or filling them with values ​​- the work will go directly with the attributes of the edited object with the same name.
Input fields, as well as other elements on the form, are included in the FormElements set. Those. If you have an element on the form named Article, then using the FormElements.Article path you can access the properties of your input field and further control the visibility, accessibility, tooltip and other properties that are available for editing.
If the input field is in a collection (for example, it is a column in a table field that is associated with a table section), then access is a little more complicated and will be in the spirit of: FormElements.Products.Columns.Price

A
Alexander, 2019-03-26
@Dem0lisher

SKU of ThisNomenclature = SKU;
or
Article of This Nomenclature = Form Elements. Article. Value;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question