Code in forms
Almost every Dynamics AX developer knows them rule that business logic shouldn’t go to forms, but only few take it at least a bit seriously. It’s surprising that although developers complain about slow...
View ArticleLayer change in MorphX VCS
I already posted an article about the same thing some time ago: Moving a model to another layer. The difference is that it was about Team Foundation Server, but this time I needed to move a model to...
View ArticleParsing XML files with .NET Interop
Today I want to show how to download XML files from internet, validate, parse and use them in Dynamics AX 2012. It’s also yet another example of how we can simplify implementation by using appropriate...
View ArticleHodge-podge – 06/2013
AxErd Microsoft published several entity-relationship diagrams (ERD) regarding AX2012 R2 (+ some related data such as foreign keys). Direct link here: AxErd. Dynamics AX 2012 and TFS 2012 Dynamics AX...
View ArticleTalks about AX in the Czech republic
This post is primarily intended for the Czech mutation of this blog, but I’m not going to discriminate against anybody, right? Although I already work abroad for few years, I come to the Czech republic...
View ArticleDynamics AX Solutions Excellence Certification Program
You may have already heard about Microsoft Dynamics AX Solutions Excellence Certification Program – a new level of certifications for Dynamics AX. Microsoft already did changes to the Partner Program...
View ArticleAX2012 R2 Demo V3.0
Microsoft recently released new virtual machines with preconfigured AX2012 R2 (and a lot of other stuff): Microsoft Dynamics AX 2012 R2 Solution Demo Package V3.0. I’ve already installed the main...
View ArticleException handling with X++ and .NET Interop
A recent discussion on the community forum about exception messages prompted me to test the given case thoroughly and I think the results are worth sharing. The post also mentions something what I...
View ArticleYear in number sequence (AX2012)
I’ve noticed a lot of questions in discussion forums about how to add year to a number sequence in AX2012, e.g. to generate IDs such as 2013-xxxxx and 2014-xxxxx, that would automatically use the...
View ArticleAxBuild.exe
Just a quick one to bring your attention to something what you may have missed. Microsoft released a command-line tool for Dynamics AX R2 CU 7 called AxBuild. It’s capable of compiling X++ code...
View ArticlePrinting reports from code in AX2012
How to print a report from X++ and change print settings in AX2012? I have a concrete example for you – it should give a good idea how to do that even if your situation is a little bit different....
View ArticleLines for multiple headers
The goal of today’s excercise is to create a form with two grids (containing headers and corresponding lines). The trick is that if you select multiple headers, the form will display lines for all of...
View ArticleSize matters
X++ normally doesn’t distinguish letter case – you can call warning(“x”) or WaRnInG(“x”) and both will do the same (although your colleagues may not be as forgiving as the X++ compiler). Nevertheless...
View ArticleA required device isn’t connected
Microsoft recently released Dynamics AX 2012 R2 Solution Demo Package V4, i.e. a new version of the virtual machine with Dynamics AX and related components installed and configured. The version of AX...
View ArticleA user session cannot be created
I installed AX2012 R2 CU7 with the demo data downloaded from Microsoft Dynamics AX 2012 Solution Demos on PartnerSource. When I attempted to start the AX client, it threw the following error: A user...
View ArticleCreating sales orders via AIF in AX2012
I was asked for an example how to create a sales order through AIF document services (SalesSalesOrderService). Here is my minimalist variant in C# (for AX2012 and demo data): var line = new...
View ArticleData contract serialization from X++
You can decorate classes in AX2012 with DataContractAttribute in much the same way as in .NET with System.Runtime.Serialization.DataContractAttribute. The same is true also for DataMemberAttribute....
View ArticleTarget date not found in work calendar
“Target date not found in work calendar” was an error that was reported to me by a customer using workflow in AX2009. It was easy to find that it was thrown by...
View ArticleMerging concurrent changes in AX with TFS
Suppose you’re an AX developer working in an AX instance shared by few other developers. You want to do some changes that would likely cause issues to your colleagues until they’re finished, therefore...
View ArticleCreating AX users in Powershell
If you want to create a user in Dynamics AX 2012, you can simply use New-AXUser cmdlet and other User and role-based security cmdlets. It’s more difficult in AX 2009 and older versions, but you can...
View Article