Explanatory Question
Display Method in D365 F&O
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.
Indicates that the methods return value is to be displayed on a forms (or) Reports. The value cannot be altered in the form or report
Take the new method in a table, and then drag that method into the grid and set data source properties. In that field is non-editable.
We can create display method on the
Display Name names () { CustTable custTable; ; return CustTable::find(this.CustAccount).Name; }
Below method is part of AnsariMCROrderEventTable_Extension which is table extension.
/// /// Extension methods for the [ExtensionOf(tableStr(MCROrderEventTable))] final class AnsariMCROrderEventTable_Extension { // 22/01/2021 - rummanansari - CR no - Include Time zone on SO time stamps and Route cutoff times - Start [SysClientCacheDataMethodAttribute(true)] public display Timezone ANSARITimeZone() { SalesTable salesTable; TimeZone warehouseTimeZone; select InventSiteId from salesTable where salesTable.SalesId == this.SalesId; warehouseTimeZone = InventSite::timeZoneSite(salesTable.InventSiteId); return warehouseTimeZone; } // 22/01/2021 - rummanansari - CR no - Include Time zone on SO time stamps and Route cutoff times - End }MCROrderEventTable table ///
This method is the part of the ansariSalesTable_Extesnion, which is table extension.
// 22/01/2024 - rummanansari - CR no - Include Time zone on SO time stamps and Route cutoff times - Start [SysClientCacheDataMethodAttribute(true)] public display Timezone ansariCutoffTimeandTimeZone() { TimeZone warehouseTimeZone; warehouseTimeZone = InventSite::timeZoneSite(this.InventSiteId); return warehouseTimeZone; } // 22/01/2024 - rummanansari - CR no - Include Time zone on SO time stamps and Route cutoff times - End
First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.