Wednesday, 18 December 2013

JumpRef method in ax 2012

public void jumpRef()
{
Args            args;
MenuFunction    menuFunction;
;
args = new Args();
menuFunction = new MenuFunction(menuitemDisplayStr(“FORM NAME”), MenuItemType::Display);
args = new Args(menuFunction.object());
args.caller(element);
menuFunction.run(args);
}
//Jumpref method -  Go to that particular journal ID

public void jumpRef()
{
LedgerJournalTable       _LedgerJournalTable;
Args args;
MenuFunction menuFunction;
;
breakpoint;
_LedgerJournalTable = LedgerJournalTable::find(this.text());
if(!_LedgerJournalTable)
return;
args = new Args();
args.caller(element);
args.record(_LedgerJournalTable);
menuFunction = new MenuFunction(menuitemdisplaystr(LedgerJournalTable),MenuItemType::Display);
menuFunction.run(args);
}

No comments:

Post a Comment