I am trying to override the modified, jumpRef, lookupReference function of a data field in a form extension class. This is what i tried to do.
[FormEventHandler(formStr(ProjFundingSourceDetail), FormEventType::Initialized)]
public void initializedFormHandler(xFormRun formRun, FormEventArgs e)
{
FormDataObject shipToLogisticsAddressing = this.ProjFundingSource_ds.object(fieldNum(ProjFundingSource, ShipToLogisticsAddressing), 1);
shipToLogisticsAddressing.registerOverrideMethod(methodStr(FormDataObject, modified), formMethodStr(ProjFundingSourceDetail, modifiedImplementation), this);
shipToLogisticsAddressing.registerOverrideMethod(methodStr(FormDataObject, jumpRef), formMethodStr(ProjFundingSourceDetail, jumpRefImplementation), this);
shipToLogisticsAddressing.registerOverrideMethod(methodStr(FormDataObject, lookupReference), formMethodStr(ProjFundingSourceDetail, lookupReferenceImplementation), this);
}
public void modifiedImplementation()
{
// Custom Logic
}
public void jumpRefImplementation()
{
// Custom Logic
}
public Common lookupReferenceImplementation()
{
// Custom Logic
}
The 'lookupReferenceimplementation' is working fine and i am getting desired result. But while trying to modify or jumpref, i am getting the following error from UI.
"Error executing code: FormRun object does not have method 'jumpRefImplementation'." and "Error executing code: FormRun object does not have method 'modifiedImplementation'."
Can anyone help me with this? Thanks in advance.