D365F&O - X++ - set display method from table extension in form control
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAEtZwkhtRv7HzK1w3rsN-_4IUhuKWnviOpTqNnJFYHNsQW-188oCvmU1cg0cmp_NFue8aGDjTW2hMevRFAuK86e3y9o8nMJ-Kixxc6ojq08xV0uONnLw5qf2aMAAUS858mC5i1wRTZGgXza1MD7SaBNItTA5nyPR31Fn1gRWQuTOdCKh0BqOF8XEtRNs/w667-h82/Screenshot%202023-11-28%20182905.png)
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