mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Correct performance knowledge guidance (#94)
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>
This commit is contained in:
parent
5706959e4a
commit
0e06485027
31 changed files with 279 additions and 261 deletions
|
|
@ -2,13 +2,22 @@ report 50221 "Perf Sample AddLoadFields Bad"
|
|||
{
|
||||
dataset
|
||||
{
|
||||
// No AddLoadFields: every Cust. Ledger Entry column ships per row, even though
|
||||
// only three columns feed the layout.
|
||||
dataitem(CustLedgerEntry; "Cust. Ledger Entry")
|
||||
{
|
||||
column(CustomerNo; "Customer No.") { }
|
||||
column(PostingDate; "Posting Date") { }
|
||||
column(Amount; Amount) { }
|
||||
|
||||
trigger OnAfterGetRecord()
|
||||
begin
|
||||
// Source Code is not a dataset column, so its first access causes a
|
||||
// just-in-time load and updates the dataitem enumerator.
|
||||
RegisterSourceCode("Source Code");
|
||||
end;
|
||||
}
|
||||
}
|
||||
|
||||
local procedure RegisterSourceCode(SourceCode: Code[10])
|
||||
begin
|
||||
end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue