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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.10.2006, 18:22   #1  
Blog bot is offline
Blog bot
Участник
 
25,491 / 846 (79) +++++++
Регистрация: 28.10.2006
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
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dax-lessons: Document Handling in AX - setup and Example Blog bot DAX Blogs 0 27.08.2007 23:00
Axapta Lessons: Trapping keystrokes in a Form Blog bot DAX Blogs 13 01.11.2006 18:16
Axapta Lessons: FORM SalesTable (3): Add a document to the button Posting Blog bot DAX Blogs 0 28.10.2006 18:22
Axapta Lessons: Add menu options to the Add-Ins submenu Blog bot DAX Blogs 0 28.10.2006 18:22
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:14.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.