Codeunit 8622 Config. Insert With Validation
- App
- Base Application
- Namespace
- System.IO
- Versions
- 17-28
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/System/RapidStart/ConfigInsertWithValidation.Codeunit.al35 lines, Copyright (c) Microsoft Corporation. MIT
namespace System.IO;
codeunit 8622 "Config. Insert With Validation"
{
trigger OnRun()
begin
InsertWithValidation();
end;
var
RecRefToInsert: RecordRef;
procedure SetInsertParameters(var RecRef: RecordRef)
begin
RecRefToInsert := RecRef;
end;
local procedure InsertWithValidation()
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeInsertWithValidation(RecRefToInsert, IsHandled);
if not IsHandled then
RecRefToInsert.Insert(true);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertWithValidation(var RecRefToInsert: RecordRef; var IsHandled: Boolean)
begin
end;
}