ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 7301 - OnBeforeCheckDefault
Please add a new integration event OnBeforeCheckDefault in Table 7301.
LOCAL PROCEDURE CheckDefault@1();
VAR
WhseEmployee@1000 : Record 7301;
+ IsHandled@100000000 : Boolean;
BEGIN
+ IsHandled := FALSE;
+ OnBeforeCheckDefault(IsHandled);
+ IF IsHandled THEN
+ EXIT;
WhseEmployee.SETCURRENTKEY(Default);
WhseEmployee.SETRANGE(Default,TRUE);
WhseEmployee.SETRANGE("User ID","User ID");
WhseEmployee.SETFILTER("Location Code",'<>%1',"Location Code");
IF NOT WhseEmployee.ISEMPTY THEN
ERROR(Text000);
END;
New integration event
[Integration]
LOCAL PROCEDURE OnBeforeCheckDefault@100000000(VAR IsHandled@100000000 : Boolean);
BEGIN
END;