Override the jumpRef method in Dynamics 365 F&O
Show view detail button on a field when we right click
JumpRef method is used when we click on the any form and wanted to move the respective detail page of it .
Like we have a sales order field on any other form and by right clicking we wanted to see the view detail button so that we can move the detail page of the sales order.
you can find the below sample code. There are some other ways as well to override the jumpRef method
public void jumpRef()
{
SalesTable salesTable = SalesTable::find("SalesId");
Args args = new Args(This);
MenuFunction mf;
//Specify the
record
args.record(salesTable);
args.caller(element);
//Specify the
menuitem name that is going to be called.
mf = new MenuFunction(menuItemDisplayStr(SalesTableDetails), MenuItemType::Display);
mf.run();
}
No comments:
Post a Comment