There are two documents. They are created independently by different users. The first document "Distribution" contains details "car", "driver"; the second document "Application" contains the same details.

It is necessary when creating the document "Application", the user fills in the auto field, if the distribution document is created for this car on that day, the driver field is filled in automatically, if not, the data is reset.

Tell me, please, how to implement it?

  • I'm not a dock in 1C, but it may be worth looking further towards other configuration objects? Such as, for example, the Register of Records or the Register of Accumulations? - Sublihim
  • Hmm i information taken from the register, not from the document ... this is an idea, I will try. Thank you - Elena

1 answer 1

In my opinion, the solution is as follows:

  1. It is necessary to create a register of information (subordinate to the registrar, frequency: Day)
  2. Implement the distribution document to add an entry in this register.
  3. Implement in the information register manager module a method that takes a car and a date as a parameter and returns the driver
  4. Further options 2:

    4.1 In the document, the application, when changing a field, call the method from clause 3 and if it returned Undefined, clear the value and display a message to the user with reference to the field

    4.2 In addition to clause 4.1 when selected, display to the user only those vehicles for which the distribution has been entered. (you can create a separate selection form, for example)

  • Thanks) I will try. Then accomplish your goal whether or not - Elena