• Customization to go to the main table form


    Go to the Main Table Form is a feature of Dynamics AX, which allows users to jump to the main record just by right-clicking on the field and selecting the Go to the Main Table Form option. It is based on table relations and is available for those controls whose data fields have foreign key relationships with other tables.
    but,sometimes we are need to using (display/edit) methods to display on the gird.

    such as  Form path :InventQurantineOrder) - > Grid - >purchId()(dsplay method)

    1)OverLoad jumpref system reference method before

    2)OverLoad jumpRef method after

     

    X++ Code as below:

    go to the main table form
    public void jumpRef()
    {
    //Add by Jimmy on DEC.3th 2010
    FormRun fr;
    FormDataSource fds;
    Args args
    = new Args();
    PurchId purchId;
    PurchTable CurPurchTable
    ;
    super();
    purchId
    = InventQuarantineOrder.PurchId();
    CurPurchTable
    = PurchTable::find(purchId);//current purchase order record

    args.name(formstr(PurchTable));
    fr
    = ClassFactory.formRunClass(args);
    fr.init();
    fr.run();
    fr.dataSource().findRecord(CurPurchTable);
    //jump reference for current PO record
    fr.detach();
    }
  • 相关阅读:
    完全卸载 Oracle
    Windows 下 Oracle 10g 手工创建数据库
    zip & unzip 命令
    J2EE的13种核心技术规范
    Windows 8发行预览版序列号
    wget百度百科
    Application's Life Cycle
    当前网络存在的安全问题
    Ubuntu 11.10 更换 LightDM 开机登录画面
    tmp文件夹的默认权限
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1895602.html
Copyright © 2020-2023  润新知