Table of Contents

OnAddCustomFunctions Event

Codeunit Function Mutex Mgt

Use this event to add custom mutexes. Use the AddFunction() procedure on the provided record to add new function mutex codes.

Deprecated

This event is deprecated and should not be used.

Reason: This event is replaced by the OnAddFunctions event and will be removed in an upcoming release.
Deprecated since: 22.3

Signature

[IntegrationEvent(false, false)]
[Obsolete('This event is replaced by the OnAddFunctions event and will be removed in an upcoming release.', '22.3')]
OnAddCustomFunctions(var pvtFunctions: Record "QWETB Function Mutex" temporary)

Parameters

var pvtFunctions Record "QWETB Function Mutex" temporary

The record that should be used to add mutexes in. See example.

Example

[EventSubscriber(ObjectType::Codeunit, Codeunit::"QWETB Function Mutex Mgt", 'OnAddCustomFunctions', '', false, false)]
local procedure OnAddCustomFunctions(var pvtFunctions: Record "QWETB Function Mutex" temporary)
begin
    pvtFunctions.AddFunction(GetMutexCode(), GetMutexDescription());
end;

procedure GetMutexCode(): Code[20]
begin
    exit('MY_SAMPLE_MUTEX');
end;

procedure GetMutexDescription(): Text[50]
begin
    exit('My Sample Mutex');
end;

This documentation is generated from Smart Toolbox v27.1