web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Display method for table extension D365FO

Sheikh Sohail Profile Picture Sheikh Sohail 6,125


As we all knows there is no option to create method in table extension and most of the time we have requirement to create display method.

Following are the steps.



Step-1  Create class Extension of the table where you can write the display method.

[ExtensionOf(tableStr(CustTable))]
final class CustTable_Extension
{
}


Step-2  Create the display methods in the class 

public static class CustTable_Extension
{
[SysClientCacheDataMethodAttribute(true)]  
public static display Name custGroupName(CustTable _this)
{
return  CustGroup::find(_this.CustGroup).Name;
}
}



This was originally posted here.

Comments

*This post is locked for comments