Aller au contenu

Document Relation Events in Document Central

This article describes the events provided by Document Central related to the Document Relation.

Publisher

Codeunit 5492908 "SIM_DMS Event Publisher"

Document Relation Events

OnBeforeSetSourceDocummentRelation

1
2
3
4
[IntegrationEvent(false, false)]
procedure OnBeforeSetSourceDocummentRelation(ParamSourceRecordRef: RecordRef)
begin
end;

Raised

This event triggers before the document relation is written for the document.

Parameter

Name Type Description
ParamTargetRecordRef RecordRef The Reference of the Record where the Relation is written from.

OnBeforeSetTargetDocummentRelation

1
2
3
4
[IntegrationEvent(false, false)]
procedure OnBeforeSetTargetDocummentRelation(ParamTargetRecordRef: RecordRef)
begin
end;

Raised

This event triggers after the document Relation is written for the document.

Parameter

Name Type Description
ParamTargetRecordRef RecordRef The Reference of the Record where the Relation will be written to.

OnBeforeInsertDocummentRelation

1
2
3
4
[IntegrationEvent(false, false)]
procedure OnBeforeInsertDocummentRelation(ParamRecordSIMDMSDocumentRelationship: Record "SIM_DMS Document Relationship")
begin
end;

Raised

This event triggers Before the Document Relation is Inserted into the Document Central document relationship table.

Parameter

Name Type Description
ParamRecordSIMDMSDocumentRelationship Record "SIM_DMS Document Relationship" The Entry of the Document Relation that is written.

OnGetDocNoNoPrimaryKey

1
2
3
4
[IntegrationEvent(false, false)]
procedure OnGetDocNoNoPrimaryKey(var ParamDocNoCode: Code[100]; ParamRecordSIMDMSDocumentRelationship: Record "SIM_DMS Document Relationship"; ParamSourceBoolean: Boolean; ParamMapCode: Code[20])
begin
end;

Déclenché

Cet événement est déclenché dès qu'il est reconnu que le champ « Include in Query » du mapping n'est pas un champ « Primary Key ». Dans ce cas, aucun numéro de document ne peut être déterminé via la relation de document et un numéro de document peut être transmis à la relation de document via l'événement.

Paramètres

Nom Type Description
ParamDocNoCode Code[100] Le numéro de document modifié qui est transmis à partir de la relation de document.
ParamRecordSIMDMSDocumentRelationship Record "SIM_DMS Document Relationship" L'entrée de la relation de document.
ParamSourceBoolean Boolean Donne l'information que le document ne doit pas être renvoyé par la relation source ou cible.