AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.01.2007, 20:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
casperkamal: Customizing Infolog through SysInfoAction
Источник: http://casperkamal.spaces.live.com/B...CD63!207.entry
==============


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……....


Источник: http://casperkamal.spaces.live.com/B...CD63!207.entry
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
gatesasbait: How to temporarily suppress infolog messages in Dynamics Ax (deux) Blog bot DAX Blogs 7 28.01.2009 17:45
Kashperuk Ivan: SysInfoAction class description - Improve your Infolog Blog bot DAX Blogs 0 17.09.2008 03:23
SysInfoAction and InfoLog Blog bot DAX Blogs 0 18.04.2008 00:07
casperkamal: A small addition to creation of Table throug x++ code in Dynamics Ax Blog bot DAX Blogs 0 03.04.2007 23:11
casperkamal: Sending Emails from Ax Blog bot DAX Blogs 0 28.11.2006 14:10

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:08.