KVSMTCDataMaintenanceLib#
Events#
OnBeforeProcessMandatoryFieldDataChecks(RecordRef, Record KVSMTCMandatoryField) :#
Summary: This event is fired in the procedure ProcessMessageChecks. The event can be used to filter the mandatory field data checks before processing them.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcessMandatoryFieldDataChecks(var RecordRef: RecordRef; var KVSMTCMandatoryFieldDataChecks: Record "KVSMTCMandatoryField"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDataMaintenanceLib", 'OnBeforeProcessMandatoryFieldDataChecks', '', false, false)]
local procedure DoSomethingOnBeforeProcessMandatoryFieldDataChecks(var RecordRef: RecordRef; var KVSMTCMandatoryFieldDataChecks: Record "KVSMTCMandatoryField")
begin
end;
Parameters:
RecordRef: The recordref (corresponding record) that will be processed through the mandantory fields check.KVSMTCMandatoryFieldDataChecks: The checks that are related to the reccordref.
OnGetAdditionalDocRecords(RecordRef, RecordRef, Integer, Boolean) :#
Summary: This event is fired during ProcessChecks to allow subscribers to provide additional related records that should be included in the data maintenance check for a given document header.
[IntegrationEvent(false, false)]
local procedure OnGetAdditionalDocRecords(DocHeaderRecordRef: RecordRef; var AdditionalRecordRef: RecordRef; Index: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCDataMaintenanceLib", 'OnGetAdditionalDocRecords', '', false, false)]
local procedure DoSomethingOnGetAdditionalDocRecords(DocHeaderRecordRef: RecordRef; var AdditionalRecordRef: RecordRef; Index: Integer; var IsHandled: Boolean)
begin
end;
Parameters:
DocHeaderRecordRef: The RecordRef of the document header being processed.AdditionalRecRef: The RecordRef to be populated with the additional records for the given index.Index: The 1-based index of the current iteration, incremented with each call until IsHandled is false.IsHandled: Set to true if a subscriber provides records for the given index; the loop continues as long as this is true.