ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5766 - OnBeforeGetUserLocation
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;