A
A
AlexCruel2021-05-07 11:43:10
1C
AlexCruel, 2021-05-07 11:43:10

How to bind a change of one attribute to another?

Input data on the form:
Attribute1
Attribute2

When changing Attribute1.Name, automatic change of Attribute2.Name is required. so that their values ​​are the same.

On the example of the reference book "Nomenclature of suppliers". There is a link to the reference book "Nomenclature". This field contains the name of the item. When changing the name, the "Name" field for the "Nomenclature of suppliers" reference book should automatically change.

How to do it in the configurator?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Vodakov, 2021-05-07
@AlexCruel

On the example of the "Nomenclature of Suppliers" reference book, such a case is generally strange, because for this purpose it was made by different directories in order to solve the problem when the same nomenclature is called differently by us and by the supplier.
If you formally solve the problem; "when changing an attribute, change another", then the solution depends on whether you have regular forms or managed ones. I will assume that they are managed, since they are used in almost all modern configurations. Then you need to add an OnChange event handler for attribute1, and describe the algorithm for filling attribute2 in it. In order to add an event handler in managed forms, you need to call the context menu of attribute1 and select <OnChange> in the "Events" item. Then select which event handler you need, on the client, or on the client with processing on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question