ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5766 - OnBeforeGetUserLocation

Open kwettermann opened this issue 7 years ago • 0 comments

Please add a new integration event OnBeforeGetUserLocation in Table 5766.

    [External]
    PROCEDURE GetUserLocation@17() : Code[10];
    VAR
      WarehouseEmployee@1000 : Record 7301;
+     IsHandled@100000000 : Boolean;
    BEGIN
+     IsHandled := FALSE;
+     OnBeforeGetUserLocation(IsHandled);
+     IF IsHandled THEN
+       EXIT;
      WarehouseEmployee.SETCURRENTKEY(Default);
      WarehouseEmployee.SETRANGE("User ID",USERID);
      WarehouseEmployee.SETRANGE(Default,TRUE);
      IF WarehouseEmployee.FINDFIRST THEN
        EXIT(WarehouseEmployee."Location Code");

      WarehouseEmployee.SETRANGE(Default);
      WarehouseEmployee.FINDFIRST;
      EXIT(WarehouseEmployee."Location Code");
    END;

New integration event

[Integration]
LOCAL PROCEDURE OnBeforeGetUserLocation@100000000(VAR IsHandled@100000000 : Boolean);
BEGIN
END;

kwettermann avatar Mar 28 '19 12:03 kwettermann