Tuesday, May 31, 2011

Spell Check in Dynamics AX

There is a class in AX that allows to perform spell checking. This class uses Microsoft Word spell checker to do the validation. So, in order to use it, Microsoft Word should be installed together with proofing language pack. Because of this requirement it is also important to consider where to run spell checking - on the server or on the client.

Example:
public static server void spellCheckerTest()
{
    SysSpellChecker sp = SysSpellChecker::newLanguageId('en-us');
    ;

    info(strfmt('%1', sp.checkSpelling("behavior")));
    info(strfmt('%1', sp.checkSpelling("behaviour")));
}


The output in infolog will be:
1
0

Development environment in AX 2012

It wasn't easy to decide from what to start. There are so many new features and they are so important and interesting! However, there is one feature that every AX 2012 developer will use for sure.


In AX 2012 the new development environment was introduced (click on the picture to enlarge).




Now IDE is separated from the application.

You can also notice the beautiful visual studio-like code editor and compiler output window.

Development tools are now much more accessible. Version control parameters, for example, do not require navigating 3-levels deep menu.

Development workspace can be started by typing
ax32 - development
from command line, or by
Ctrl+Shift+W
combination from the application or another development workspace.

Disable the AOT Icon


Restrict AOT icon access on Dynamics AX 

Sometimes we want to restrict the AOT icon access on Dynamics AX, but we don't know how to do it... Is there a way to do this...


In the user group permissions that we want to change, we are going to the 'security' view and setting the 'Development' security key to 'No access'.

Company Specific Color Code

Here, I explain you how to make a form color change in Dynamics AX based on the company that was logged in.


To do this, we need to create/override run() method in SysSetupFormRun class. 


Please refer to the following code sample below. 
It shows how to change the color to red or yellow based on the company KOE or CEE.

public void run()
{
    int red;
    int yellow;
    ;


    super();


    red  = WinAPI::rgb2int(255,0,0);
    yellow  = WinAPI::rgb2int(204,255,0);


    this.design().colorScheme(FormColorScheme::RGB);


    switch(curext())
    {
        case "KOE":
            this.design().backgroundColor(red);
            break;


        case "CEE":
            this.design().backgroundColor(yellow);
            break;


        default:
            break;
    }
}


Monday, May 2, 2011

AX 2012 Release Date


Microsoft Dynamics AX 2012 Releasing in August 2011
Last Modified 4/28/2011
Posted 4/27/2011

Microsoft Dynamics AX 2012 will be released in August 2011.
Microsoft Dynamics AX is a comprehensive business management solution for large and mid-sized enterprises which includes industry capabilities for distribution, manufacturing, service industries, retail, and public sector.

Microsoft Dynamics AX 2012 is the next release of Microsoft Dynamics AX and defines a new generation of Enterprise Resource Planning (ERP) solutions with significant enhancements to the architecture, helping partners to bring solutions to the market faster, lowering product life cycle investments and expanding market opportunities.

The release timeline for Dynamics AX 2012 starts August 2011 and pricing will be made available at this time. The release will happen in phases, and additional countries/regions will be added within 12-18 months of the initial date.

Training will be offered through your Regional Operations Center (ROC) from August onwards. In addition, key note updates will be provided in the monthly Dynamics Hour beginning in May. Visit the Microsoft Dynamics AX Launch Portal to help you prepare for this exciting launch. Here you can access e-learning, find training & certification information, find upcoming AX launch events near you and review the press materials recently distributed at Convergence.

Here is a list of useful links & more information:
PartnerSource resources
Microsoft Partner Network
Microsoft TechNet
MSDN
Microsoft Learning
Regional Sites