ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7301 - OnBeforeCheckDefault

Open kwettermann opened this issue 7 years ago • 0 comments

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;

kwettermann avatar Mar 28 '19 12:03 kwettermann