Announcements
No record found.
HI all,
I want to call datasource method displayAnnualEquivalent in an data entity so I make make a virtual field and make property of field IsComputed to "No" and I use this code.
this.IncreaseAmount = HRMCompFixedEmpl.displayAnnualEquivalent(HRMCompFixedEmpl::findRecId(this.RecId));
Please suggest me a solution.
Hi Anas Shahid,
You cannot access DataSource method inside data entity. Instead, you implement the same method logic in your data entity.
Thanks,
Girish S.
Hi Anas, You can try mapDataSourceToEntity method in data entity, you can get table buffer and can access display method to map in the data entity field. This method is called during data entity export. For import, method is mapEntityToDataSource. Please note that virtual fields cause performance impact during data export.
nareshdax.blogspot.com/.../entity-methods-in-ax7.html
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 738
André Arnaud de Cal... 453 Super User 2026 Season 1
Syed Haris Shah 286 Super User 2026 Season 1