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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.11.2006, 16:00   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
Axapta Lessons: Menus.
Источник: http://axapta-lessons-learned.blogsp.../11/menus.html
==============
The standard application comes with a default menu structure. However menus in MorphX are extremely flexible and can be custom made to suit the exact needs of any company and user. Menus allow us to organize application objects so that the end user can find and use them quickly.

All menus in Axapta are based on menu items. When we create a menu, we create references to our collection of Menu Items. Creating Menu Items are a prerequisite for creating any menu.

STEPS to create a Menu
To create a Menu, follow these steps:
- Open the AOT.
- Locate and right-click the node Menus.
- Select New Menu from the shortcut menu. As a result an empty menu item, named MenuX (where X is a number), is created.

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

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


In the next tasks we are going to create a new Menu, add the menu to the Axapta Main Menu and attach our previously created menu item.

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


To create a Menu, follow these steps:
- Open the AOT.
- Right-click the node Menus and select New Menu.
- Right-click the newly created menu and select Properties.
- In the Property sheet set the following properties:
Name: TRA_Menu
Label: Training Menu
Leave the other fields as defaulted.


Task: Create a Tab Page on the Main Menu
The task here is to:
? Create a Tab Page on the Main Menu that holds our menu.


To create a new Tab page on the Main Menu, follow these steps:
- Open the AOT.
- Locate and open the node Menus.
- Locate the node MainMenu.
- Open the node MainMenu in another window. (Right-click, select Open new window)

- Position your cursor back in the window holding the MainMenu node.
- Right-click and select New Menu Reference.

- In the window that opens select your Menu TRA_Menu.

Move a bit around with the open windows so the window containing the MainMenu and the window containing the Menus are visible.

- Drag and drop the menu TRA_Menu onto the Main Menu.

- Save the Main Menu (Ctrl+S).

Hint: When the Menu appears with no menu name in the MainMenu window, ensure you have assigned the menu a label. Then remove the menu from the main menu and start over again.

Note: When you open the Main Menu the newly added menu will not be displayed if it does not contain menu items.


Task: Attach a menu item to your menu
The task here is to:
? Attach the menu item previously created to our menu.

To attach a Menu Item to a Menu follow these steps:
- Open the AOT.
- Locate the node Menus.
- Locate your menu: TRA_Menu.
- Open the menu in another window. (Right-click, select Open new window)

- Position the cursor back in the previous window holding all the menus.

- Locate and open the node Menu Items.
- Select the sub-node Display and locate your menu item: TRA_Menu_Item.
- Now drag and drop the menu item onto the TRA_Menu.

- Save the Menu (Ctrl+S).


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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dax-lessons: Active directory in Axapta Blog bot DAX Blogs 0 27.08.2007 23:00
Axapta Lessons: Axapta DLLs Blog bot DAX Blogs 0 28.10.2006 18:22
Axapta Lessons: Extending the Tools menu and submenus Blog bot DAX Blogs 0 28.10.2006 18:22
Axapta Lessons: Integrating Microsoft Axapta with Microsoft Office and Microsoft SharePoint Blog bot DAX Blogs 0 28.10.2006 18:22
Введение в Аксапту Роман Кошелев DAX: Прочие вопросы 0 18.12.2001 14:00

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

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

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