Showing posts with label Display Method. Show all posts
Showing posts with label Display Method. Show all posts

Edit and Display Method

 


Difference Between Edit And Display Method


The display indicates that the method’s return value is to be displayed on a form or a report.
The value cannot be altered in the form or report.

Edit indicates that the method’s return type is to be used to provide information for a field that is used in a form. The value in the field can be edited.

Support Faryal's Cusine


Display method for table extension D365FO


A display method for table extension D365FO


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

Following are the steps.



Step-1  

Create a 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;
}
}



Support Faryal's Cusine


Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...