ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 91 (User Setup): OnEnableApprovalAdministrator

Open ekesteloot opened this issue 7 years ago • 0 comments

Please add a OnEnableApprovalAdministrator integration event to Table 91 (User Setup)

We would like to permit more than one individual to be an Approval Administrator. This could be handled with an integration event.

Integration Event Definition:

[IntegrationEvent(false, false)]
local procedure OnEnableApprovalAdministrator(var UserSetup: Record "User Setup"; var IsHandled: Boolean)
begin
end;

Invocation in "Approval Administrator" OnValidate function:

    trigger OnValidate()
    var
        UserSetup: Record "User Setup";
======> IsHandled: Boolean;
    begin
        if "Approval Administrator" then begin
==========> OnEnableApprovalAdministrator(Rec, IsHandled);
==========> if IsHandled then
==========>     exit;

            UserSetup.SetRange("Approval Administrator", true);
            if not UserSetup.IsEmpty then
                FieldError("Approval Administrator");
        end;
    end;

ekesteloot avatar Nov 20 '19 05:11 ekesteloot