Instrumentation and tracing

Regardless of how hard we try to write flawless software, sooner or later something goes wrong and we must identify where exactly the problem lies (to be able to fix it). One option is using the debugger, but it’s not always possible – we can’t reproduce the problem, for example. Another way is inserting some …

Continue reading ‘Instrumentation and tracing’ »

Data 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. This is a simple data contract class in X++: [DataContractAttribute] class ItemContract { str name;   [DataMemberAttribute("Name")] public str parmName(str _name = name) { name = _name; return name; } …

Continue reading ‘Data contract serialization from X++’ »

Parsing 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 .NET APIs and seamlessly integrate such a code with Dynamics AX. Our data source will be daily exchange rates provided …

Continue reading ‘Parsing XML files with .NET Interop’ »

Hodge-podge – 04/2013

This new “series” is intended to briefly mention various topics that I find interesting and/or useful, but they’re too short for a separate posts. I don’t currently want to spend more time with them or I just simply want to give you a link and I wouldn’t add any additional value. Compare 〈Dynamics AX〉 The …

Continue reading ‘Hodge-podge – 04/2013’ »

AX + LINQ + WPF

All technologies mentioned in the title – Dynamics AX, LINQ (Language Integrated Query) and WPF (Windows Presentation Foundation) – are quite complex and it may sound strange to mix them together. But I want to show how they can be used to make complicated things simpler. We’ll create a simple WPF application showing data from …

Continue reading ‘AX + LINQ + WPF’ »