Hi
I created a extension (CustTable.Extension) to table "CustTable" to add more fields.
Then I would like to override onModifiedField event handler so I created a class "CustTable_Extension" and copy/paste the onModifiedField event handler and modified to the following:
[ExtensionOf(tableStr(CustTable))]
final class CustTable_Extension
{
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
[DataEventHandler(tableStr(CustTable), DataEventType::ModifiedField)]
public static void CustTable_onModifiedField(Common sender, DataEventArgs e)
{
ModifyFieldEventArgs event = e as DataEventArgs;
CustTable custTable = sender as CustTable;
FieldId fieldId = event.parmFieldId();
switch(fieldId)
{
case fieldNum(CustTable, ContactPersonId):
<Adding business logic here>
break;
default:
break;
}
}
}
It's simple customization for event handler but somehow this piece of code is never executed even when I modified "ContactPersonId". I am wondering whether or not create customized event handler for the table when there is another table extension to add new fields is NOT supported? If so, what could be workaround?