[Event Request] Report 7000080 Post Payment Order - OnBeforeCommit
We need a new event in report 7000080 "Post Payment Order":
LOCAL [IntegrationEvent] OnBeforeCommit(VAR PmtOrd : Integer;VAR HidePrindDialog : Integer;VAR IsHandled : Integer)
Called from Cartera Doc. OnPostDataitem, with a local variable named IsHandled: Boolean, and a exit control:
Cartera Doc. - OnPostDataItem() ... ... FinishCode; //Init insert --------------------- IsHandled:=FALSE; OnBeforeCommit(PmtOrd,HidePrindDialog,IsHandled); IF IsHandled THEN EXIT; //End insert --------------------- COMMIT; IF NOT HidePrintDialog THEN MESSAGE(Text1100005,PmtOrd."No."); EXIT;
Sorry. The correct syntax of IntegrationEvent is:
LOCAL [IntegrationEvent] OnBeforeCommit(VAR PmtOrd : Record "Payment Order";VAR HidePrindDialog : Boolean;VAR IsHandled : Boolean)
LOCAL [IntegrationEvent] OnBeforeCommit(VAR PmtOrd : Record "Payment Order";VAR HidePrintDialog : Boolean;VAR IsHandled : Boolean)