Hello,
I have written the following query and some logic inside:
public void run()
{
while select RecId from inventSum
where inventSum.Closed == NoYes::No &&
(inventSum.PostedQty inventSum.Received - inventSum.Deducted inventSum.Registered - inventSum.Picked > 0)
join RecId,ItemId from inventTableExpanded_ICL
where inventTableExpanded_ICL.ItemId == inventSum.ItemId
join RecId from inventDim
where inventDim.inventDimId == inventSum.InventDimId
join inventLocationId, wMSLocationId from wmsLocationIntermediate_ICL
group by wmsLocationIntermediate_ICL.InventLocationId, wmsLocationIntermediate_ICL.WMSLocationId, inventTableExpanded_ICL.ItemId
where wmsLocationIntermediate_ICL.InventLocationId == inventDim.InventLocationId &&
wmsLocationIntermediate_ICL.WMSLocationId == inventDim.wMSLocationId
{
//info(strfmt("%1 %2 %3 ", wmsLocationIntermediate_ICL.InventLocationId, wmsLocationIntermediate_ICL.WMSLocationId,inventTableExpanded_ICL.ItemId));
try
{
wmsOnlineCountingServer = WmsOnlineCountingServer::constructItem(inventTableExpanded_ICL.itemId, wmsLocationIntermediate_ICL.InventLocationId,
wmsLocationIntermediate_ICL.WMSLocationId,NoYes::Yes);
wmsOnlineCountingServer.run();
}
catch (Exception::Error)
{
//setPrefix(strFmt("@SYS14077", inventTableExpanded_ICL.itemId));
continue;
}
}
}
It gives me the following output:

Instead of giving a different message for each itemid it created root element only for the first itemid and then added all messages from different itemids to the same root element. Is there any way to separate the infolog messages for each itemid?
Thanks.