bcquality/microsoft/knowledge/reporting/reportextension-report-triggers-run-after-base-triggers.good.al
Stefano Demiliani b545b22fb9
Add reporting review guidance and evaluation fixtures (#183)
* knowledge(performance): add job queue reliability guidance

* Address Job Queue review feedback

* Address Job Queue routing review feedback

* Encode job queue conflict in fixtures

* Add reporting review guidance and fixtures

* Fix reporting article reference
2026-09-15 10:38:32 +02:00

37 lines
No EOL
816 B
AL

report 50110 "Customer Export"
{
ProcessingOnly = true;
dataset
{
dataitem(Customer; Customer)
{
}
}
trigger OnPreReport()
var
ExportDate: Date;
begin
OnBeforeResolveExportDate(ExportDate);
if ExportDate = 0D then
Error(ExportDateRequiredErr);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeResolveExportDate(var ExportDate: Date)
begin
end;
var
ExportDateRequiredErr: Label 'An export date is required.';
}
codeunit 50111 "Customer Export Extension"
{
[EventSubscriber(ObjectType::Report, Report::"Customer Export", 'OnBeforeResolveExportDate', '', false, false)]
local procedure SetExportDate(var ExportDate: Date)
begin
ExportDate := Today();
end;
}