Update content/BCBestPractices/Performance/SubscriberCodeunits/index.md

Co-authored-by: Henrik Helgesen <henrik@helgesen.consulting>
This commit is contained in:
waldo 2022-02-12 10:02:24 +01:00 committed by GitHub
parent 28dde8ce6f
commit 554f1c0edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,8 @@ If possible, only execute the subscriber when really necessary by using Manual B
[EventSubscriber(ObjectType::Table, Database::"Just Some Table WLD", 'OnAfterValidateEvent', 'Message 2', false, false)]
local procedure JustDoSomthing(var Rec: Record "Just Some Table WLD"; var xRec: Record "Just Some Table WLD")
begin
if Rec.color <> 'RED' then exit; //only execute when necessary
if Rec.color <> 'RED' then
exit; //only execute when necessary
...
end;