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, 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.
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.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156