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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.03.2010, 17:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axaptapedia: Accessor Methods Generator
Источник: http://www.axaptapedia.com/Accessor_Methods_Generator
==============

Summary: Created from scratch.

Accessor Methods Generator creates accessor methods for private member variables of Dynamics AX objects. All member variables declared in a selected class are displayed to an user, he or she marks the variables and adjust proposed method properties. Methods are generated immediately after a confirmation.
[[Image:AccessorMethodsGenerator.gif|thumb|Accessor Methods Generator]]

==Download==
[http://www.goshoom.net/blogspot/down...erator_0.1.zip Accessor Methods Generator]

==Installation==
X++:
#Import downloaded .xpo file.
#Add DevAccessorMethodsGenerator menu item to SysContextMenu menu.
#Add the following code to SysContextMenu.verifyItem() (inside ''case MenuItemType::Action'')
case menuitemActionStr(DevAccessorMethodsGenerator):
    if (this.selectionCount() == 1
        && !firstNode.AOTIsOld()
        && DevAccessorMethodsGenerator::isSupportedTreeNode(firstNode))
    {
        return 1;
    }
    return 0;
==Supported AX versions==
Accessor Methods Generator was tested in Dynamics AX 2009 only.

==Usage==
*Select AOT object with member variables (typically a class, but is can be also a form etc.), open context menu and choose ''Generate accessor methods''.
*A form is displayed, showing one record for each member variable. Following fields are available:
** Mark (editable) - Mark it if you want to create an accessor method for this variable.
** Variable type (read only) - Type of the member variable.
** Variable (read only) - Name of the member variable.
** Read (editable) - If marked, generated method will return value of the variable.
** Write (editable) - If marked, method will accept a parameter and write value to the variable.
** Method name (editable) - Accessor method name. Can be adjusted by user.
** Parameter name (editable) - Name of the parameter of the accessor method (if applicable). Can be adjusted by user.
** Parent (read only) - Checked if the variable is defined in some parent class and not in the selected class itself.
* Choose variables (filtering can be used in the form), mark them, adjust the setting and click OK.
* Methods are generated and result is displayed in the Infolog. Methods can be opened by double clicking on the infolog message.

==Customizations==
There is no parametrization available - modify the source code if needed. For example, if you want to change the default method prefix, adjust the getPrefix() method in the TmpDevAccessorMethod table.

[[Category:Development tools]]


Источник: http://www.axaptapedia.com/Accessor_Methods_Generator
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: Tutorial Password Blog bot DAX Blogs 1 22.05.2009 21:23
axaptapedia: Table Methods Generator Blog bot DAX Blogs 0 13.02.2009 02:05
axcoder: PowerShell + Ax Blog bot DAX Blogs 1 09.01.2009 18:05
axcoder: AxPath is supported by axaptapedia Blog bot DAX Blogs 0 11.05.2007 10:00

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

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

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