microsoft / ALAppExtensions

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

[Event Request] Table 77 "Report Selections" – OnFindPrintUsageInternalOnAfterSetFilter #26931

Open TMEKUMA opened 1 month ago

TMEKUMA commented 1 month ago

Describe the request

[Event Request] Table 77 "Report Selections" ??? OnFindPrintUsageInternalOnAfterSetFilter

Could we please have a publisher OnFindPrintUsageInternalOnAfterSetFilter in function FindPrintUsageInternal Table 77 "Report Selections"?

    local procedure FindPrintUsageInternal(ReportUsage: Enum "Report Selection Usage"; AccountNo: Code[20]; var TempReportSelections: Record "Report Selections" temporary; TableNo: Integer)
    begin
        Reset();
        SetRange(Usage, ReportUsage);
        SetFilter("Report ID", '<>0');

// >>>>>>>>
        OnFindPrintUsageInternalOnAfterSetFilter(Rec, ReportUsage, AccountNo, TempReportSelections, TableNo);
// >>>>>>>>

        FindReportSelections(TempReportSelections, AccountNo, TableNo);
        TempReportSelections.FindSet();
    end;

// >>>>>>>>
    [IntegrationEvent(false, false)]
    local procedure OnFindPrintUsageInternalOnAfterSetFilter(var ReportSelections: Record "Report Selections"; ReportUsage: Enum "Report Selection Usage"; AccountNo: Code[20]; var TempReportSelections: Record "Report Selections" temporary; TableNo: Integer)
    begin
    end;
// <<<<<<<< 

Additional context

We need to filter another field that is only intended for print. Internal work item: AB#543325

azure-boards[bot] commented 1 month ago

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