ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 7302 - OnBeforeGetAllowedLocation

Open kwettermann opened this issue 7 years ago • 2 comments

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;

kwettermann avatar Mar 29 '19 07:03 kwettermann

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.

AlexanderYakunin avatar Apr 10 '19 09:04 AlexanderYakunin

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.

kwettermann avatar Apr 11 '19 07:04 kwettermann