From 554f1c0edd55dd7f6efb24fe35ff20df739cf8cb Mon Sep 17 00:00:00 2001 From: waldo Date: Sat, 12 Feb 2022 10:02:24 +0100 Subject: [PATCH] Update content/BCBestPractices/Performance/SubscriberCodeunits/index.md Co-authored-by: Henrik Helgesen --- .../BCBestPractices/Performance/SubscriberCodeunits/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/BCBestPractices/Performance/SubscriberCodeunits/index.md b/content/BCBestPractices/Performance/SubscriberCodeunits/index.md index 8e7314bf..9839458f 100644 --- a/content/BCBestPractices/Performance/SubscriberCodeunits/index.md +++ b/content/BCBestPractices/Performance/SubscriberCodeunits/index.md @@ -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;