ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5005356 - OnBeforeErrorIfUserIsNotWhseEmployee
Please add a new integration event OnBeforeErrorIfUserIsNotWhseEmployee in Table 5005356.
+ [External]
+ PROCEDURE ErrorIfUserIsNotWhseEmployee@100000001()
+ VAR
+ WhseEmployee@1000 : Record 7301;
+ IsHandled@100000000 : Boolean;
+ BEGIN
+ IsHandled := FALSE;
+ OnBeforeErrorIfUserIsNotWhseEmployee(IsHandled);
+ IF IsHandled THEN
+ EXIT;
+ IF USERID <> '' THEN BEGIN
+ WhseEmployee.SETRANGE("User ID",USERID);
+ IF WhseEmployee.ISEMPTY THEN
+ ERROR(Text001,USERID);
+ END;
+ END;
New integration event
[Integration]
LOCAL PROCEDURE OnBeforeErrorIfUserIsNotWhseEmployee@100000000(VAR IsHandled@100000000 : Boolean);
BEGIN
END;
PROCEDURE ErrorIfUserIsNotWhseEmployee does not exist in this table.