Using the RelatedDocument feature in Extension

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Aug 13, 2022
Company: ComPhase Bilgi Teknolojileri Ltd. Şti.

I want to use the Related Documents application, which has SSL feature, for the documents I generate from each other in the extension I created. Would you help me with this topic?

 
#2
People who like this:0Yes/0No
Administrator
Rating: 23
Joined: Oct 3, 2019
Company:

Hello Ertuğrul,

please specify which 1C configuration you are using? A typical one? Or a self-created one? And what version of SSL do you use?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Aug 13, 2022
Company: ComPhase Bilgi Teknolojileri Ltd. Şti.

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.

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Aug 13, 2022
Company: ComPhase Bilgi Teknolojileri Ltd. Şti.

Thanks. problem solution.

When I added these codes into the forms, it worked.

Code
// StandardSubsystems.AttachableCommands
&AtClient
Procedure Attachable_ExecuteCommand(Command)
   AttachableCommandsClient.ExecuteCommand(ThisObject, Command, Items.List);
EndProcedure

&AtServer
Procedure Attachable_ExecuteCommandAtServer(Context, Result) Export
   AttachableCommands.ExecuteCommand(ThisObject, Context, Items.List, Result);
EndProcedure

&AtClient
Procedure Attachable_UpdateCommands()
   AttachableCommandsClientServer.UpdateCommands(ThisObject, Items.List);
EndProcedure
// End StandardSubsystems.AttachableCommands

 
#5
People who like this:0Yes/0No
Administrator
Rating: 23
Joined: Oct 3, 2019
Company:

Great!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.