mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-06 15:16:56 +01:00
Add BC performance knowledge from OptimAL learnings
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
07e324ddbc
commit
af94c135ad
37 changed files with 881 additions and 36 deletions
|
|
@ -1,17 +1,22 @@
|
|||
codeunit 50218 "Perf Sample LoadFields Good"
|
||||
{
|
||||
procedure ListUSCustomerNames()
|
||||
procedure CollectUSCustomerNamesAndCities(var DisplayNames: List of [Text])
|
||||
var
|
||||
Customer: Record Customer;
|
||||
begin
|
||||
Customer.SetRange("Country/Region Code", 'US');
|
||||
Customer.SetLoadFields(Name);
|
||||
Customer.SetLoadFields(Name, City);
|
||||
if Customer.FindSet() then
|
||||
repeat
|
||||
Message(Customer.Name);
|
||||
DisplayNames.Add(CustomerDisplayText(Customer));
|
||||
until Customer.Next() = 0;
|
||||
end;
|
||||
|
||||
local procedure CustomerDisplayText(Customer: Record Customer): Text
|
||||
begin
|
||||
exit(Customer.Name + ' ' + Customer.City);
|
||||
end;
|
||||
|
||||
procedure LookupSkuPolicy(LocationCode: Code[10]) Policy: Enum "SKU Creation Method"
|
||||
var
|
||||
Location: Record Location;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue