mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Add per-row performance guidance
Document SetAutoCalcFields for per-row FlowFields and direct writes on iterated records, with focused reviewer retrieval cues. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 85be3fc4-5253-47b8-ba1b-6b8fd188fcea
This commit is contained in:
parent
9214f73819
commit
bad62d2763
7 changed files with 127 additions and 2 deletions
|
|
@ -0,0 +1,16 @@
|
|||
codeunit 50490 "Perf AutoCalcFields Good"
|
||||
{
|
||||
procedure CollectOverLimitCustomers(var CustomerNos: List of [Code[20]])
|
||||
var
|
||||
Customer: Record Customer;
|
||||
begin
|
||||
Customer.SetLoadFields("Credit Limit (LCY)");
|
||||
Customer.SetFilter("Credit Limit (LCY)", '>0');
|
||||
Customer.SetAutoCalcFields("Balance (LCY)");
|
||||
if Customer.FindSet() then
|
||||
repeat
|
||||
if Customer."Balance (LCY)" > Customer."Credit Limit (LCY)" then
|
||||
CustomerNos.Add(Customer."No.");
|
||||
until Customer.Next() = 0;
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue