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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.03.2007, 19:42   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axaptapedia: Configuration in title bar
Источник: http://www.axaptapedia.com/Configuration_in_title_bar
==============

Summary:
==Configuration in title bar==

One common complain with Dynamics Ax 4.0 is that it is not possible for the user to determine in which environment they are working.

Particularly for consultants/developers who often have multiple Ax applications open at one time, this is very frustrating and can easily lead to errors (developing in the wrong application). In Axapta 3.0 information was displayed in the title bar allowing users to determine the application, but this is missing in Ax 4.0

This simple fix will display the configuration name in the main Dynamics Ax window title bar. You need to simply override the workspaceWindowCreated() method in the info() class (special class nearly at the bottom of the Classes node in the AOT) and add a single line of code. After the change, the method should appear as follows:


void workspaceWindowCreated(int _hWnd)
{
;
// Put workspace window specific initialization here.
// Show config in title bar
WinAPI::setWindowText(_hWnd, strFmt("%1 - %2", WinAPI::getWindowText(_hWnd), xInfo::configuration()));
}


Another option is shown below. This will put the current AOS and server name, as well as the logged in development layer, after the standard title bar text.


void workspaceWindowCreated(int _hWnd)
{
SqlSystem sqlSystem = new SqlSystem();
LoginProperty loginProperty = sqlSystem.createLoginProperty();
;

// Put workspace window specific initialization here.

// Show application details in title bar
if (loginProperty)
{
WinAPI::setWindowText(_hWnd, strFmt("%1 - %2@%3 (%4)", WinAPI::getWindowText(_hWnd), loginProperty.getDatabase(), loginProperty.getServer(), this.currentAOLayer()));
}
}


The details for these fixes came originally from posts to the microsoft public axapta newsgroup.


Источник: http://www.axaptapedia.com/Configuration_in_title_bar
Старый 08.03.2007, 19:57   #2  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
не забывайте, что состав заголовка указывается в файле axsys*.ktd в bin каталоге.
См. системную строку с номером #1076

Чаще бывает, что проще не кодировать, а поменять строку в этом файле.
__________________
полезное на axForum, github, vk, coub.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: Progress Bar Blog bot DAX Blogs 0 21.07.2008 03:39
axaptapedia: Progress Bar Blog bot DAX Blogs 0 27.06.2008 11:05
gatesasbait: Showing Database name of current AOS in AX 4.0x title bar Blog bot DAX Blogs 0 18.12.2007 19:50
Inside Dynamics AX 4.0: Licensing and Configuration Blog bot DAX Blogs 0 31.10.2007 11:40
при построении перекрёстных ссылок выдаётся сообщение об ошибках mmmax DAX: Программирование 10 21.01.2005 12:42

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

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

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