Notifications
Announcements
No record found.
Hi,
I have a question. How can I sum LineAmount of PurchRequisition based on PurchReqId? I need to show sum of LineAmount based on the PurchReqId into new field (NewField).Should I add method in table or form?
I guess you're going to write a display method. You should put it to the table, because then you can cache it. It's extremely important from performance perspective.
By the way, why did you attach tags "Connector for CRM" and "Administration and Setup"?
Hi Martin,
Is there any other alternative way instead of write a display method?I have edited the tags you mention.
Yes, you can also maintain the sum in some physical field. But that's a lot of effort since you need to capture every possible process that can impact the sum, and trigger recalculation of that field.
So, if you just want to show the sum of lineAmount, a display method is most likely the best approach.
Hi HelioBuenos,
You could also extend the PurchReqTable table and add your new field. Then extend the PurchReqLine table, and write your code of the calculation logic to its INSERT \ Update \ DELETE method.
Here is a same thread:
community.dynamics.com/.../in-x-calculate
Hope this helps.
Hi Nikolaos,
I forgot to mention that the NewField is on PurchReqTableListPage.
I am still new in AX, can you please help me with display method?
Please read this document:
docs.microsoft.com/.../using-the-display-method-modifier
Hi Willy,
Thank you!
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 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader