Update content/BCBestPractices/Performance/SubscriberCodeunits/index.md
Co-authored-by: Henrik Helgesen <henrik@helgesen.consulting>
This commit is contained in:
parent
28dde8ce6f
commit
554f1c0edd
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue