Purpose
Writing Display Method In Table Extension Of Standard or Base Table.For example:Writing display in table extension “VendTable”.
Sample Code & Instruction:
- Create a new extension class for table.
- Write a new display method and also define method attribute [SysClientCacheDataMethodAttribute]
- 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]
cheers 🙂
piyush adhikari
One thought on “D365/AX7:Display Method In Table Extension Of Standard or Base Table”