2 Sept 2013

Company name in client's title bar + AX 2012


They had a lot of companies in Dynamics AX and had many instances of Dynamics AX client open at the same time. Now, the Dynamics AX client's window shows the current company ID in the title bar but they wanted to show the company name instead as this will help them to easily open the right instance.
The fix was easy, I thought it was worth sharing here.

The code needs to go in the workspaceWindowCreated() method of Info class.
void workspaceWindowCreated(int _hWnd)
{
;
WinAPI::setWindowText(_hWnd, strFmt("%1 - %2", curext(),xDataArea::find(curext()).name));
}
Hope this helps. ...

No comments:

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...