D365F&O - X++ - set display method from table extension in form control

 1- Right click on the table and click "create extension" and write your display method.

[ExtensionOf(tableStr(CustTrans))]
final class CustTransTable_Extension
{
    public display CustGroupId getCustGroup()
    {
        return CustTable::find(this.AccountNum).CustGroup;
    }
}

2- Go to the control where you want to set the display method set display method as below











Comments

Popular posts from this blog

D365F&O - X++ - Best Practice Warning BP Rule: [BPErrorUnknownLabel]: Path:

D365F&O - X++ - How to Enable/Disable button on form based on a condition in D365F&O using Event handlers.

D365FO - X++ - Generate CAR (Customized Analysis Report) report of custom model