ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 91 (User Setup): OnEnableApprovalAdministrator
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;