✏️ Explanatory Question
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.
/// <summary>
/// Extension methods for the <c>MCROrderEventTable</c> table
/// </summary>
[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
}
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