Hi,
I create a Custom API using AL. I would like to work with nested loop in the api. I tried in many times, the nested loop is not working. Kindly help me to solve.
Here the code for reference.
Code:
area(content)
{
repeater(Group)
{
field(EmployeeCode; Rec."Employee No.")
{
Caption = 'Employee Code';
ApplicationArea = All;
}
part(employees; "Employees - API")
{
Multiplicity = ZeroOrOne;
Caption = 'Employees';
EntityName = 'employee';
EntitySetName = 'employees';
SubPageLink = "No." = FIELD("Employee No.");
}
field(FromDate; Rec."From Date")
{
Caption = 'From Date';
ApplicationArea = all;
}
field(ToDate; Rec."To Date")
{
Caption = 'To Date';
ApplicationArea = all;
}
field(Code; Rec."Cause of Absence Code")
{
Caption = 'Causes of Absence';
}
}