Dynamics AX Knowledge

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

   In a MenuItemBotton, you can select an operation according as your condition.

   Args args = new Args();
    ;

    args.record("表名") ;

    //访问Form;
    if(XXXXXXXX)
    new MenuFunction(menuItemDisplayStr(''Unit''),MenuItemType::Display).run(args);

    //访问类
    else if(XXXXXX)
    //new MenuFunction(menuItemActionStr(''Calculator''),MenuItemType::Action).run(args);

    //访问报表
esle
    //new MenuFunction(menuItemOutputStr(''Currency''),MenuItemType::Output).run(args);

posted on 2008-01-08 16:48  Jacky Xu  阅读(157)  评论(0编辑  收藏  举报