mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
* Add P0 integration and control add-in guidance Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 02baffe8-0600-430d-81fa-a9993685e7cb * Correct API part multiplicity guidance Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 02baffe8-0600-430d-81fa-a9993685e7cb * Refine API part multiplicity guidance Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1c37924e-9749-4e63-9d58-bd73d659f736 --------- Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
80 lines
1.6 KiB
AL
80 lines
1.6 KiB
AL
page 50353 "WS Order API Bad"
|
|
{
|
|
PageType = API;
|
|
APIPublisher = 'contoso';
|
|
APIGroup = 'sales';
|
|
APIVersion = 'v1.0';
|
|
EntityName = 'order';
|
|
EntitySetName = 'orders';
|
|
ODataKeyFields = SystemId;
|
|
SourceTable = "Sales Header";
|
|
|
|
layout
|
|
{
|
|
area(content)
|
|
{
|
|
repeater(records)
|
|
{
|
|
part(lines; "WS Order Line API Bad")
|
|
{
|
|
EntityName = 'orderLine';
|
|
EntitySetName = 'orderLines';
|
|
Multiplicity = ZeroOrOne;
|
|
SubPageLink = "Order No." = Field("No.");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
table 50353 "WS Order Line Bad"
|
|
{
|
|
fields
|
|
{
|
|
field(1; "Entry No."; Integer)
|
|
{
|
|
AutoIncrement = true;
|
|
}
|
|
field(2; "Order No."; Code[20])
|
|
{
|
|
TableRelation = "Sales Header"."No.";
|
|
}
|
|
}
|
|
|
|
keys
|
|
{
|
|
key(PK; "Entry No.")
|
|
{
|
|
Clustered = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
page 50354 "WS Order Line API Bad"
|
|
{
|
|
PageType = API;
|
|
APIPublisher = 'contoso';
|
|
APIGroup = 'sales';
|
|
APIVersion = 'v1.0';
|
|
EntityName = 'orderLine';
|
|
EntitySetName = 'orderLines';
|
|
ODataKeyFields = SystemId;
|
|
SourceTable = "WS Order Line Bad";
|
|
|
|
layout
|
|
{
|
|
area(content)
|
|
{
|
|
repeater(records)
|
|
{
|
|
field(id; Rec.SystemId)
|
|
{
|
|
Editable = false;
|
|
}
|
|
field(orderNumber; Rec."Order No.")
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|