28.10.2006, 18:22 | #1 |
Участник
|
Axapta Lessons: FORM SalesTable (4): Add a document to the button Posting
Источник: http://axapta-lessons-learned.blogsp...cument-to.html
============== Analyze the design of the document to identify the changes required Select the MenuItem SalesFormLetter_Quotation. Right-click and Open the property sheet. Notice the settings of the properties: - Label - Class - Object - EnumTypeParameters - EnumParameter - RunOn - NeededAccessLevel - MultiSelect The properties Class and Object set the type of object and object name to be called by the menu function. There are three types of objects: Display, Output and Action. The properties EnumTypeParameter and EnumParameter on a menu item set the type of base enum and element value to be passed to the object run by the menu function. The property RunOn decides where the application object is executed, only when the application object activated by the menu item has its own RunOn property set to Called from. In case of Classes the RunOn property on the class determines where objects instantiated from the class will live. The property NeededAccessLevel defines the minimum access required if the menu item is to appear on a menu or button. The property MultiSelect determines whether printing quotations for a number of selected sales orders in the sales order form is enabled. When MultiSelect is set to No and more than 1 sales order is selected the menu item button Quotation shows as disabled. What happens when the menu item button Quotation is pushed? The menu item SalesFormLetter_Quotation is activated and calls the class SalesFormLetter supplying an EnumTypeParameter and EnumParameter. The EnumTypeParameter is of type DocumentStatus and the EnumParameter contains the value Quotation. The method main() on the class SalesFormLetter uses the EnumParameter to construct the specific class to be instantiated. salesFormLetter = SalesFormLetter::construct(parmEnum); ============== Источник: http://axapta-lessons-learned.blogsp...cument-to.html |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|