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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.11.2006, 16:00   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
Axapta Lessons: Menu Items
Источник: http://axapta-lessons-learned.blogsp...enu-items.html
==============
Menu items are a collection of items that can be activated from menus and forms. Each item runs an application object: a form, a report, a class, or a query.

We must always create a menu item when we want to activate an application object from a menu or from a form. The link to an application object is made through a menu item.

A menu item is created in the Menu Items node in the AOT. As we can see there are three menu item types. Each type corresponds to a sub-node in the node Menu Items.

The valid types are specified in the system enumeration MenuItemType. Each type represents a category with certain characteristics.

The categories are:

- Display: Holds items that are displayed on the screen, typically forms.
- Output: Holds items that generate output, primarily reports.
- Action: Holds items that activate queries and classes.

Notes:
• The sub-nodes are identical in structure and we can use them as we wish.
• The name of a menu item must be unique within its category.


STEPS to create a Menu Item
There are two ways to create Menu Items:
o Drag and drop an application object onto the Menu Items sub-node. (Automatic creation)
o Right-click on the sub-node and select New Menu Item. (Manual creation)


To create a Menu Item, manually, follow these steps:
- Open the AOT.
- Locate and open the node Menu Items.
- Right-click one of the sub-nodes, that matches the purpose of the new menu item.
- Select New Menu Item from the shortcut menu. As a result an empty menu item, named MenuItemX (where X is a number), is created. In the property sheet we will have to give the menu item an appropriate name.

- Now right-click the newly created menu item and select Properties from the shortcut menu.

- In the property sheet fill in the appropriate properties. At least the properties Name, Class and Object are required to use the menu item.


To create a Menu Item, using Drag and drop, follow these steps:
- Open the AOT.
- Locate the node Menu Items
- Right-click and select Open New Window.

- Locate the node where the application object.resides.
- Select the application object.
- Drag and drop the application object onto the respective menu item sub-node. A menu item for the application object is now created.

Note: The properties of the menu item are automatically taken over (set) from the application object, except for the Label and Help text properties.

- Now right-click the menu item and select Properties from the shortcut menu. In the property sheet set the properties Label and Help Text.


Task: Create menu item TRA_Menu
The task here is to:
? Create a Menu Item that holds the menu items we are going to create during the course of this manual.

To create a Menu Item, follow these steps:
- Open the AOT.
- Locate and open the node Menu Items.
- Right-click sub-node Display AND select New Menu Item from the shortcut menu.

- Now right-click the newly created menu item and open the property sheet.

- In the Property sheet set the following properties:
Name: TRA_Menu_Item
Label: Training Menu Item
HelpText: Help Training Menu Item
Leave the other fields as defaulted.


==============
Источник: http://axapta-lessons-learned.blogsp...enu-items.html
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Axapta Lessons: Menu Properties. Blog bot DAX Blogs 0 23.11.2006 16:00
Axapta Lessons: Menus. Blog bot DAX Blogs 0 23.11.2006 16:00
Axapta Lessons: Menu Item Properties. Blog bot DAX Blogs 0 23.11.2006 16:00
Axapta Lessons: Extending the Tools menu and submenus 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
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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