zoukankan      html  css  js  c++  java
  • Customizing Infolog through SysInfoAction

    This section will explore about customizing the Infolog in Ax through SysInfoAction,

      We generally use the infolog to display various type of messages , occasionally we also carry out some action through the Infolog, say for example opening a new form or the code from which the info originated these can be done with the help of SysInfoAction.

      The Info has the following signature,

           Info(SysInfoLogStr txt, URL helpUrl = '', SysInfoAction _sysInfoAction = null)

           _sysInfoAction is the parameter that helps us to customize Infolog,

     To customize the infolog, in such a way that Infolog appears with a button"OpenCustTable" and when the button is clicked a “CustTable” Form is opened, The code would look like this

             SysInfoAction_FormRun   SysInfoAction =  SysInfoAction_FormRun::newFormnameDesc(Formstr(custtable), 'OpenCustTable');
             ;
             Info('Trying to customize Infolog', '', SysInfoAction);

     The second parameter in the static method of sysInfoAction specifies the name of the button that appears in the infolog.

    Similarly Ax comes with a set of classes that will help us to perform different actions through the infolog namely,

        SysInfoAction_Editor        
        SysInfoAction_Formrun
        SysInfoAction_FormrunQuery
        SysInfoAction_MenuFunction
        SysInfoAction_newWindow
        SysInfoAction_Properties
        SysInfoAction_Showplan
    (Seems to be used for SQL Trace display, exploring it will soon post it’s use J !!!)

        SysInfoAction_TableField
                 This class takes a any table record as parameter and displays the selected record in the associated form (Using dictable.formRef ()).
        info(strfmt("@SYS121436","00024822CN"),'http://www.cnblogs.com/Jimmyx/#',SysInfoAction_TableField::newBuffer(purchTable::find("00024822CN")));
  • 相关阅读:
    智能家居测试思路
    Linux中,&和&&,|和||
    Eclipse设置保存代码时自动格式化代码
    Eclipse常用快捷键
    Eclipse设置快捷出现函数
    Eclipse设置代码背景色
    PDF转换成Word后乱码怎么办?
    Able2Extract快捷键汇总整理
    安装并激活Parallels Desktop商业版
    想在Mac上使用CAD?
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1978070.html
Copyright © 2011-2022 走看看