AX2012: Subqueries in views

Dynamics AX 2012 supports computed columns in AOT views. That allows you to convert a value of a field in some way, to actually compute a value based on several fields and so on, and it’s all defined directly in SQL Server as any other view. Indeed, the definition of a computed column just generates …

Continue reading ‘AX2012: Subqueries in views’ »

AX compilation log parser

Dynamics AX allows you to export compilation output to a file (.html). The file can be imported back into AX and then you can work with compilation results in Dynamics AX application in the same way as after a normal compilation. That’s useful for later analysis without a need of recompilation, for automated builds and …

Continue reading ‘AX compilation log parser’ »

Real world functional programming

The first time I heard something concrete about functional programming was few years ago at a talk in Prague given by Tomáš Petříček. He also mentioned his book Real world functional programming there. It all sounded quite interesting and I told myself that I would look at the book at some time. It took quite …

Continue reading ‘Real world functional programming’ »

Box class

I still see a lot of X++ developers calling the Box class in code that is used in database transactions. It may cause nasty problems – as I show in this post. Imagine code like this, used in some table: void delete() { if (Box::yesNo("Are you sure?", DialogButton::No) == DialogButton::Yes) { super(); } } When …

Continue reading ‘Box class’ »

ReceivedFault is not marked as serializable

Last week I needed to use a third-party web service in AX2009. I created a service reference in AOT, so AX generated necessary code and configuration and I was immediately able to get data from the service. Quickly done, almost without any work. Great. But I wouldn’t write about it if that was all. The …

Continue reading ‘ReceivedFault is not marked as serializable’ »