Hi,
I'm doing an extension on the TMSCommercialInvoice and it uses an AOT query object
I've extended the TMSCommercialInvoice query object with new datasources and I need to do a group by.
It doesn't allow it. So I'm wondering if there another way of doing group by on extended query?
Regards,
Brightlin
Hi
Maybe the easiest way to calculate this will be to implement a specific query in the processReport method of the Data Provider with the "group by" in the Data Provider class ?
You could calculate this only when the shipmentId has changed by using the method queryRun.changed(tablenum(WMSShipmentTable)) and avoid the calculation on every row (it depends to the excepted result).
By this way, you don't change the standard design of the query.
Jérémy.
Yes, I know. It's because I need add the container table to sum up qty from the container instead of using the qty of the loadline
If you added Group By to the query, it means the whole query would be grouped, not just the new data source. It sounds suspicious. Wouldn't it break the standard logic that uses the query?
What exactly are you trying to achieve?
You have option of using query object in a code and then add datasource to it and then do group by on it .
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 785 User Group Leader
André Arnaud de Cal... 626 Super User 2025 Season 2
Martin Dráb 621 Most Valuable Professional