Hello Everyone
I wrote the code below....
In the first case I try to sort the lines of the report by itemId and ItemRoutId and it works fine
while select ProdBOMtmp order by ItemRouteId,ItemId
where ProdBOMtmp.OprNum == ProdRoute.OprNum
outer join prodJournalBOMselect
where prodJournalBOMselect.InventTransId == ProdBOMtmp.InventTransId
&& prodJournalBOMselect.JournalId == prodJournalBOM.JournalId
outer join MyInventItemLocation
where MyInventItemLocation.InventItemLocation == prodJournalBOMselect.InventItemLocationIn the second case I try to sort the lines by printingSequence witch is in a custom
MyInventItemLocation table
(I already use this field in other reports and the order works fine)
while select ProdBOMtmp
where ProdBOMtmp.OprNum == ProdRoute.OprNum
outer join prodJournalBOMselect
where prodJournalBOMselect.InventTransId == ProdBOMtmp.InventTransId
&& prodJournalBOMselect.JournalId == prodJournalBOM.JournalId
outer join MyInventItemLocation order by printingSequence
where MyInventItemLocation.InventItemLocation == prodJournalBOMselect.InventItemLocationBut in this one doesn't work.
Does anyone understand why?????