Y
Y
yuliana_valerevna2019-05-29 16:10:05
1C
yuliana_valerevna, 2019-05-29 16:10:05

How was the price automatically recorded in the tabular section when selecting an attribute?

faced such a problem in 1C 8.3, I have an "Order Form" document in the tabular section of the "Order" document, I have the details "Collection Name", "Execution of Issues" (which type of product is in the form of an enumeration with the values ​​"PaperVariant" and "ElectronicView", "Quantity", "Price", "Amount") I need that when I select the "ExecutionIssues" attribute, depending on the choice, the price is automatically filled. The price for each type of product is in the "Collections" directory
I don't know how to write the code
5cee83e5bc579348256629.png5cee848ba53c4619575207.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Nagibovich, 2019-05-29
@nki

You need to handle the OnChange event for the "Collection name" field of the TabularPart. In this handler, you get prices and substitute them.

D
Dmitry Kinash, 2019-05-29
@Dementor

1) When editing a form element with a choice of the release execution type, make an event handler for the OnChange event with the client and server parts (there will be a constructor question)
2) Do not touch the client procedure, but determine the current line in the server part and get the collection reference value from it.
3) Get the price values ​​through the dot and, after checking the current values ​​of the type of issue, substitute the required value in the price field (props of the current line).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question