Show / Hide Table of Contents

    OnAddFunctions Event

    Codeunit Function Mutex Mgt

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

    Signature

    [IntegrationEvent(false, false)]
    OnAddFunctions(var FunctionMutex: Codeunit "QWETB Function Mutex")
    

    Parameters

    var FunctionMutex Codeunit "QWETB Function Mutex"

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

    Example

    This example adds a new mutex to be used by this function.

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"QWETB Function Mutex Mgt", 'OnAddFunctions', '', false, false)]
    local procedure AddFunctions(var FunctionMutex: Codeunit "QWETB Function Mutex")
    begin
        FunctionMutex.Add(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.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX