Skip to content

KVSKBACopyDocumentLib#

Events#

OnAfterCopyDocument() :#

Summary: Integration event triggered after completing the document copy process.

[IntegrationEvent(false, false)]
local procedure OnAfterCopyDocument(): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyDocumentLib", 'OnAfterCopyDocument', '', false, false)]
local procedure DoSomethingOnAfterCopyDocument()
begin
end;

Remarks: Used by subscribers to perform cleanup operations and reset single instance values after document copying is completed.

OnGetClearSalesContractFields(Option) :#

Summary: Integration event to retrieve the current sales contract fields clearing setting.

[IntegrationEvent(false, false)]
local procedure OnGetClearSalesContractFields(var AskClearSalesContractFields: Option): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyDocumentLib", 'OnGetClearSalesContractFields', '', false, false)]
local procedure DoSomethingOnGetClearSalesContractFields(var AskClearSalesContractFields: Option)
begin
end;

Parameters:

  • AskClearSalesContractFields: Returns the current setting for clearing sales contract fields (No, Yes, Check).

Remarks: Used by subscribers to determine how contract fields should be handled during sales document copying operations.

OnGetCopyDocProcID(Boolean) :#

Summary: Integration event to retrieve the current copy document process ID setting.

[IntegrationEvent(false, false)]
local procedure OnGetCopyDocProcID(var AskCopyDocProcID: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBACopyDocumentLib", 'OnGetCopyDocProcID', '', false, false)]
local procedure DoSomethingOnGetCopyDocProcID(var AskCopyDocProcID: Boolean)
begin
end;

Parameters:

  • AskCopyDocProcID: Returns the current copy document process ID flag value.

Remarks: Used by subscribers to determine if the copy document process is currently active and should influence document ID handling.