microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 611 forks source link

[Event Request] COD487 Job Queue Start Report - Procedure ProcessPrint - OnAfterProcessPrint #26881

Open MH1612 opened 1 month ago

MH1612 commented 1 month ago

Describe the request

Please add the following Event/-s OnAfterProcessPrint to Procedure ProcessPrint in COD487 Job Queue Start Report.

[Event Request] COD487 Job Queue Start Report - Procedure ProcessPrint
    local procedure ProcessPrint(ReportID: Integer; var JobQueueEntry: Record "Job Queue Entry"; RunOnRec: Boolean; var RecRef: RecordRef)
    var
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeProcessPrint(ReportID, JobQueueEntry, IsHandled);
        if IsHandled then
            exit;

        if RunOnRec then
            REPORT.Print(ReportID, JobQueueEntry.GetReportParameters(), JobQueueEntry."Printer Name", RecRef)
        else
            REPORT.Print(ReportID, JobQueueEntry.GetReportParameters(), JobQueueEntry."Printer Name");

  // New
  OnAfterProcessPrint(ReportId, JobQueueEntry,RunOnRec);
  // New  

  end;
 [IntegrationEvent(false, false)]
 local procedure OnAfterProcessPrint(ReportID: Integer; var JobQueueEntry: Record "Job Queue Entry"; RunOnRec: Boolean)
    begin
    end;

Additional context

Start the Print of additional reports Internal work item: AB#542410

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):