X++:
while (qr.next())
{
table1= qr.get(tablenum(Table1));
while select sum(Amount) table2
group by Id
where table2.id = table1.id;
{
amount = table2.Amount;
element.send(table1);
}
element.CalcOther(table1.Id)
}
X++:
void CalcOther(Id _id)
{
while select table3
where table3.id = _id
{
element.execute(1);
}
}
method CalcOther вернут AA 5, AA 6, которих хочу печатат после сумма от група