Hi there!
I am trying to make an extension of SysDataBaseLog table to change the value of description field. I have implemented the chain of command design pattern for setDescription() method however it is NOT working as expected. Please note I am aware of how to implement COC however in this case it just doesn't work. I am curious to know if system tables are exempted from being extended? Please note even the infolog nor any breakpoint is hitting for this code. Although it is compiling successfully.
Below is the code am using to achieve the requirement:
[ExtensionOf(tableStr(SysDataBaseLog))]
final class SysDataBaseLog_Extension
{
void setDescription(Common common)
{
VendBankAccount vendBankAccount;
if (common.TableId == vendBankAccount.TableId)
{
vendBankAccount = common;
this.Description = vendBankAccount.VendAccount;
}
info(strFmt("Finally in! %", common.TableId));
next setDescription(common);
}
}