how to override displayoption method on form datasource throw extension using coc or eventhandler
can any one help me and give an example please as i used the following code and its not working
[ExtensionOf(formDataSourceStr(SalesTable, SalesLine))]
internal final class NAQLA_SalesTableFormSalesLineDS_Extension
{
public void displayOption(Common _record, FormRowDisplayOption _options)
{
#define.color(0,191,255)
if(_record.(fieldNum(SalesLine,ItemId) == 'A0001')
{
_options.backColor(WinAPI::RGB2int(#color));
_options.affectedElementsByField(fieldNum(SalesLine,SalesId));
}
next displayOption(_record, _options);
}
}