Hi everyone
I'm using D365O 7.3 PU15, shortly upgrading to PU21. I've extended the WHSWorkTable form. I've also create an extension class of this form so that I can add extra code to it etc. There is a field on the WHSWorkTable to which I'd like to add a jumpref method. By default, clicking on the fields hyperlink will take the user to Form A. I'd like to override the jumpRef method so that the user is taken to FormB.
However, when I create the jumpref method and test it, the system will first navigate to form A, and then to form B. It's as though my override isn't completely overriding the standard functionality. Does anyone know what the problem could be? Why does it go to form A first, and then to B?
My jumpref looks like this: (I've seen several other ways of doing jumprefs that appear to be older...)
[ExtensionOf(formStr(WHSWorkTable))]
final class WHSWorkTable_Extension
{
[FormDataFieldEventHandler(formDataFieldStr(WHSWorkTable, WHSWorkTable, newField), FormDataFieldEventType::JumpRef)]
public void newField_jumpRef(FormDataObject _object, FormDataFieldEventArgs _e)
{
// Get record to jump to
NewTable nt = NewTable::find(newFieldValue);
Args args = new Args();
args.caller(this);
args.record(nt);
args.refField(correctRefField);
new MenuFunction(MenuItemDisplayStr(newForm), MenuItemType::Display).run(args);
}
}
Thank you