I wanted to show the sums by InventoryItem on screen CR304000, using the following view.
public SelectFrom<CROpportunityProducts>.LeftJoin<InventoryItem>.On<InventoryItem.inventoryID.IsEqual<CROpportunityProducts.inventoryID>>.LeftJoin<INItemClass>.On<InventoryItem.itemClassID.IsEqual<INItemClass.itemClassID>>.Where<CROpportunityProducts.quoteID.IsEqual<CROpportunity.quoteNoteID.FromCurrent>>.AggregateTo<GroupBy<INItemClass.descr>, GroupBy<INItemClass.noteID>, Sum<CROpportunityProducts.curyExtPrice>>.OrderBy<INItemClass.descr.Desc>.View InventoryClassSummed;
This worked fine in a previous version, but now I get an error message:
Cannot use an aggregate or a subquery in an expression used for the group by list of a GROUP BY clause.
Does anyone know, why this does not work anymore?