Showing Database name of current AOS in AX 4.0x title bar
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();
;
{
SqlSystem sqlSystem = new SqlSystem();
;
if (sqlSystem.createLoginProperty())
{
winApi::setWindowText(_hWnd,
{
winApi::setWindowText(_hWnd,
strfmt("%1, Configuration: %2",
winApi::getWindowText(_hWnd), sqlSystem.loginDatabase()));
}
}
}
}
本文介绍如何在Microsoft Dynamics AX 4.0中修改代码,以便在客户端窗口的标题栏显示当前运行的数据库名称。此方法适用于希望在标题栏中直观查看所连接数据库信息的用户。
990

被折叠的 条评论
为什么被折叠?



