ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 7302 - OnBeforeGetAllowedLocation
Please add a new integration event OnBeforeGetAllowedLocation in Codeunit 7302.
[External]
PROCEDURE GetAllowedLocation@65(LocationCode@1000 : Code[10]) : Code[10];
VAR
WhseEmployee@1000 : Record 7301;
+ IsHandled@100000000 : Boolean;
BEGIN
+ IsHandled := FALSE;
+ OnBeforeGetAllowedLocation(IsHandled);
+ IF IsHandled THEN
+ EXIT(LocationCode);
CheckUserIsWhseEmployee;
IF WhseEmployee.GET(USERID,LocationCode) THEN
EXIT(LocationCode);
EXIT(GetDefaultLocation);
END;
New integration event
[Integration]
LOCAL PROCEDURE OnBeforeGetAllowedLocation@100000000(VAR IsHandled@100000000 : Boolean);
BEGIN
END;
Please explain why do you want WhseEmployee as parameter in event? This is empty at this point. Same question for other events requests created by you.
I have talked with my colleague. You are correct. We do not need the WhseEmployee (for now). I will remove the parameter in the respective event requests.