ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

New integration Event in Codeunit 228 "Test Report-Print"

Open ReneZiel opened this issue 4 years ago • 1 comments

Hello we need an event for an extension in procedure PrintGenJnlLine bevore REPORT.RUN

procedure PrintGenJnlLine(var NewGenJnlLine: Record "Gen. Journal Line") var IsHandled: Boolean; begin GenJnlLine.Copy(NewGenJnlLine); OnPrintGenJnlLineOnAfterGenJnlLineCopy(GenJnlLine); GenJnlLine.SetRange("Journal Template Name", GenJnlLine."Journal Template Name"); GenJnlLine.SetRange("Journal Batch Name", GenJnlLine."Journal Batch Name"); GenJnlTemplate.Get(GenJnlLine."Journal Template Name");

    IsHandled := false;
    OnBeforeReportRun(GenJnlLine, IsHandled);
    if IsHandled then
        exit;

    GenJnlTemplate.TestField("Test Report ID");
    REPORT.Run(GenJnlTemplate."Test Report ID", true, false, GenJnlLine);
end;

And the IntegrationEvent

[IntegrationEvent(false, false)] local procedure OnBeforeReportRun(var GenJnlLine: Record "Gen. Journal Line"; var IsHandled: Boolean) begin end;

ReneZiel avatar Mar 02 '22 07:03 ReneZiel

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Mar 05 '22 10:03 JesperSchulz