Home > Ax Technical > Customizing Infolog through SysInfoAction

Customizing Infolog through SysInfoAction

January 30, 2007 Leave a comment Go to comments

<![CDATA[

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 ()).

  try out the same with these classes too and have fun……….

]]>

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: