mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 667c64a8-eb36-4440-bc41-6a97d8fb5542 Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
28 lines
781 B
AL
28 lines
781 B
AL
report 50220 "Perf Sample AddLoadFields Good"
|
|
{
|
|
dataset
|
|
{
|
|
dataitem(CustLedgerEntry; "Cust. Ledger Entry")
|
|
{
|
|
column(CustomerNo; "Customer No.") { }
|
|
column(PostingDate; "Posting Date") { }
|
|
column(Amount; Amount) { }
|
|
|
|
trigger OnPreDataItem()
|
|
begin
|
|
// Dataset columns are selected by the report compiler. Source Code is
|
|
// extra because only trigger code reads it.
|
|
CustLedgerEntry.AddLoadFields("Source Code");
|
|
end;
|
|
|
|
trigger OnAfterGetRecord()
|
|
begin
|
|
RegisterSourceCode("Source Code");
|
|
end;
|
|
}
|
|
}
|
|
|
|
local procedure RegisterSourceCode(SourceCode: Code[10])
|
|
begin
|
|
end;
|
|
}
|