microsoft / ALAppExtensions

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

[Event Request] PAG682 Schedule a Report - Procedure ScheduleAReport - OnBeforeScheduleAReport #26779

Open MH1612 opened 5 days ago

MH1612 commented 5 days ago

Describe the request

Please add the following Event/-s OnBeforeScheduleAReport to procedure ScheduleAReport in PAG682 Schedule a Report

[Event Request] PAG682 Schedule a Report - Procedure ScheduleAReport - OnBeforeScheduleAReport
    procedure ScheduleAReport(ReportId: Integer; RequestPageXml: Text): Boolean
    var
        ScheduleAReport: Page "Schedule a Report";
    begin
        OnBeforeScheduleAReport(ScheduleAReport);

        ScheduleAReport.SetParameters(ReportId, RequestPageXml);
        exit(ScheduleAReport.RunModal() = ACTION::OK);
    end;
 [IntegrationEvent(true, false)]
 local procedure OnBeforeScheduleAReport(var ScheduleAReport: Page "Schedule a Report")
    begin
    end;

Additional context

Set Additional Parameters to Schedule a Report

As Alternative to the event it would be great if ScheduleAReport would not create a new instance of the page and instead would use the Current Instance (eliminate the local ScheduleAReport-Variable)