Hello Alexandr.
1C:Drive Turkey Sales And Services (1.5.2.2)
1C:Enterprise 8.3 (8.3.22.2283)
Actually, I seem to have completed most of the work, but I am getting some errors.
Filter criteria > RelatedDocuments
Filter criteria > SubordinateDocumentStructure
I added these to my extension config.
I set the Type and Content sections according to my own documents. and added the necessary events to the documents.
---For DocumentForm
Code |
---|
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
// StandardSubsystems.AttachableCommands
AttachableCommands.OnCreateAtServer(ThisObject);
// End StandardSubsystems.AttachableCommands
EndProcedure
&AtClient
Procedure OnOpen(Cancel)
// StandardSubsystems.AttachableCommands
AttachableCommandsClient.StartCommandUpdate(ThisObject);
// End StandardSubsystems.AttachableCommands
EndProcedure
&AtServer
Procedure OnWriteAtServer(Cancel, CurrentObject, WriteParameters)
// StandardSubsystems.AttachableCommands
AttachableCommandsClientServer.UpdateCommands(ThisObject, Object);
// End StandardSubsystems.AttachableCommands
EndProcedure
&AtClient
Procedure AfterWrite(WriteParameters)
// StandardSubsystems.AttachableCommands
AttachableCommandsClient.AfterWrite(ThisObject, Object, WriteParameters);
// End StandardSubsystems.AttachableCommands
EndProcedure
|
---------------For Document List Form
Code |
---|
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
// StandardSubsystems.AttachableCommands
AttachableCommands.OnCreateAtServer(ThisObject);
// End StandardSubsystems.AttachableCommands
EndProcedure
&AtClient
Procedure OnOpen(Cancel)
// StandardSubsystems.AttachableCommands
AttachableCommandsClient.StartCommandUpdate(ThisObject);
// End StandardSubsystems.AttachableCommands
EndProcedure
|
I also added these fields to the forms.
The errors I get are as follows.
In summary, I want to use the Related Document application in the extension documents I create within the Drive configuration.