Hi @wfilipiak67 If possible, can you please share the above Generic Inquiry?
Here is the XML of the Inquiry.
It has the Grouping checked
Thank you for any assistance.
Hi @wfilipiak67 I have done slight modifications to your Generic Inquiry and grouping is working as expected. Attached GI here, please verify.
Hi @wfilipiak67 ,
Although the INTran data access class is configured to display the SiteCD when you add the SiteID to the result grid, your GI is actually sorting based on the SiteID field. You can see this by looking at the SQL trace after viewing the GI. I would suggest that you add the INSite DAC and sort on the SiteCD, which it looks like is what @Naveen B has already done in his revised XML :)
...
WHERE ( WINTran].ICompanyID] = 2) AND ( INTran]. BranchID] IS NULL OR INTran].OBranchID] IN ( 22, 16, 20, 17, 21)) AND ( INTran]. InventoryID] = @P0 AND ]INTran].NTranType] = 'INV')
GROUP BY INTran].BSiteID]
ORDER BY INTran].BSiteID] OPTION(OPTIMIZE FOR UNKNOWN)
Thank you both!
That worked great!