D365/AX7:Display Method In Table Extension Of Standard or Base Table

Purpose

Writing Display Method In Table Extension Of Standard or Base Table.For example:Writing display in table extension “VendTable”.

Sample Code & Instruction:

  1. Create a new extension class for table.
  2. Write a new display method and also define method attribute [SysClientCacheDataMethodAttribute]
  3. Add a form control in form and change the properties as per below screenshot

[code language = “cpp”]
[ExtensionOf(tableStr(VendTable))]
final public class ACXVendTable_Extension
{
public static display Description vendorGroupName(VendTable _this)
{
return VendGroup::find(_this.VendGroup).Name;
}
}
[/code]

 

untitled

 

cheers 🙂

piyush adhikari

One thought on “D365/AX7:Display Method In Table Extension Of Standard or Base Table”

Leave a Reply