Monday, December 23, 2013

Open a form from infolog using X++

static void FormFromInfolog(Args _args)
{
    VendTable vt;
    select firstFast vt where vt.AccountNum == "3008";
    info(strFmt("%1",vt.AccountNum),"",SysInfoAction_tablefield::newBuffer(vt));
}

1 comment:

  1. Some time it snot working

    static void Job8(Args _args)
    {
    InventJournalTable journalTableShow;
    SysInfoAction_MenuFunction menuFunction;
    ;
    SysInfoAction_MenuFunction menuFunction ;

    select firstFast journalTableShow where journalTableShow.JournalId == journalTable.JournalId;
    menuFunction = SysInfoAction_MenuFunction::newMenuItem('InventJournalTableMovement', MenuItemType::Display);
    menuFunction.parmCallerBuffer(journalTableShow);
    info(strFmt("%1",journalTable.JournalId),'', menuFunction);
    }

    ReplyDelete