I need to convert the following X++ select statement (working code) into Query to permanently filter PO form (already attempted, looking for other ways to implement/optimize/best practice):
while select purchReqTable where purchReqTable.ApprovalGroupId == 'HSE'
{
select purchReqLine where purchReqLine.PurchReqId == purchReqTable.PurchReqId;
if(purchReqLine.RecId>0)
{
while select purchTable where purchTable.PurchId == purchReqLine.PurchId
{
i++;
info(int2str(i) + ') ' + purchTable.PurchId);
}
}
}
info('Total ' + int2str(i));
*This post is locked for comments
I have the same question (0)