Notifications
Announcements
No record found.
I've created an aot query against the PurchLine table with a sum of LineAmount grouped by PurchId and am getting multiple rows (one per purchline record) when I check a view against the query. Please advise. Below is the query. DataSource set to no Dynamic Fields.
Can you please elaborate what you mean by "I am getting multiple rows (one per purchline record)" and "I check a view against the query"?
So can you please tell me the exact issue you face here? As per given query it is giving 1 record per purch id as grouping on purchid with sum of line amount. Means
PONum totalamt
PO00001 200000
PO00002 30000
I created an aot view against the query and checked the view in the table browser and see the results returning 1 record per purchline record.
I thought the purchid is the link back to the purchtable records? I want to get a sum for the entire purchase order of the line amounts.
Yes per AOT the PurchId is the link back to purchtable.
Are you saying that the query work correctly and your problem lies in the view that you told nothing about?
At this point I am not sure if the problem lies in the view or query. Here is the view to the query.
Then I recommend forgetting the view for now and focusing on the query. If the query doesn't work correctly, there is no pointing in using it in a view, because it can't work either. And if it works correctly, you'll know that there is nothing to fix in the query and your problem must lie elsewhere.
Can you please elaborate your issue? As per query it is returning data as expected. Now what's your issue in view? If you make us clear on this thing we can help you. If that is not expected then please let us know what is expected?
As stated, when I create a query against the view as above, it is returning a record per PurchLine with the LineAmount for the PurchLine record. That is not what I need, I need one record per PurchId with sum of LineAmount from PurchLine table grouped by PurchId.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 512 Super User 2025 Season 2
Sohaib Cheema 291 User Group Leader