Microsoft Dynamics AX/AX 2012
View Detail Override
Isaac Lee
2013. 9. 13. 11:09
Dynamics AX의 View Detail (Go to main table) 기능을 수정 하려면 아래처럼 jumpRef() 메소드를 Override 하면 됩니다. 아래 코드는 2012이전 버전에서도 작동합니다.
public void jumpRef()
{
EmplTable emplTable;
Args args;
MenuFunction menuFunction;
emplTable = EmplTable::find(EmplID);
if (!emplTable)
{
return;
}
args = new Args();
args.caller(element);
args.record(emplTable);
menuFunction = new MenuFunction(menuitemdisplaystr(EmplTable), MenuItemType::Display);
menuFunction.run(args);
}