Aug 28, 2017

How to open the form by display menu item in X++ (X++에서 Display 오브젝트를 이용한 화면 호출)

void clicked()
{
    MenuFunction    _MenuFunction;
    Args            _Args = new Args();

    CustTrans       _CustTrans;
    VendTrans       _VendTrans;

    _MenuFunction = new MenuFunction(menuitemDisplayStr(LedgerTransVoucher), MenuItemType::Display);

    _Args.record(_VendTrans);

    if (_MenuFunction && _MenuFunction.checkAccessRights())
    {
        _MenuFunction.run(_Args);
    }

    super();
}

No comments:

Post a Comment