Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
You need to handle the OnChange event for the "Collection name" field of the TabularPart. In this handler, you get prices and substitute them.
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 questionAsk a Question
731 491 924 answers to any question