Показать сообщение отдельно
Старый 18.12.2007, 19:50   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
gatesasbait: Showing Database name of current AOS in AX 4.0x title bar
Источник: http://gatesasbait.spaces.live.com/B...B9F5!157.entry
==============

 
Good morning,
 
In prior versions of Ax (such as 2.5) you could see the currently running Database name in the title bar of your client. To have this in Dynamics Ax 4.0x, add this code to method 'workspaceWindowCreated' in class 'Info'.
 
void workspaceWindowCreated(int _hWnd)
{
    SqlSystem sqlSystem = new SqlSystem();
    ;
 
    if (sqlSystem.createLoginProperty())
    {
        winApi::setWindowText(_hWnd,
            strfmt("%1, Configuration: %2",
                winApi::getWindowText(_hWnd), sqlSystem.loginDatabase()));
    }
}


Источник: http://gatesasbait.spaces.live.com/B...B9F5!157.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.