![]() |
#1 |
Участник
|
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; 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 | 1 | |||
axaptapedia: Table Methods Generator | 0 | |||
axcoder: PowerShell + Ax | 1 | |||
axcoder: AxPath is supported by axaptapedia | 0 |
|