checkExist()

checkExist()is one of “standardized” static methods on tables in Dynamics AX. It complements exist() method by showing an error message in infolog (message wording is usually implemented in a separate method txtNotExist()). Many teams create just find() and exist() methods, which is a pity because it’s a common scenario to display a text message in …

Continue reading ‘checkExist()’ »

Assembly containing a given type

When exploring Dynamics AX 2012, I sometimes meet situations when I would like to know more about some CLR type (particularly to decompile it in ILSpy) and I need to know in which assembly it is contained. It can be solved by the following X++ method, for instance: public static void showContainingAssembly(str _typeName) { System.AppDomain …

Continue reading ‘Assembly containing a given type’ »

Tutorial: WPF User Control for AX2012

One of many new features in Dynamics AX 2012 which bring fantastic new possibilities is the ability to host managed UI controls, both from Windows Forms and WPF. Microsoft made a great effort to integrate the .NET environment and AX, not only from a run-time perspective but also for developers, easy event handling and so …

Continue reading ‘Tutorial: WPF User Control for AX2012’ »

Iterative development

The more programmer teams I meet, the stronger feeling I have that just few people have any concrete idea what these agile methodologies are. Opinions are usually divided into two groups: Agile development is unsystematic, unplanned, such a code & fix approach (it’s curious that this is the reason for many teams to consider themselves …

Continue reading ‘Iterative development’ »

Linking work item when checking in (AX2012)

Dynamics AX 2009 supports Team Foundation Server for storing source codes, but it doesn’t offer (out of the box) any option how to create a link between the changeset being created and a work item. Because such a relation is extremely useful and it is too complicated and error-prone to create it manually, I made …

Continue reading ‘Linking work item when checking in (AX2012)’ »