The Infolog

A blog of Dynamics AX development tips and tricks

Skip to: Content | Sidebar | Footer

Tag: X++

Using the Outlook API to produce drafts

29 September, 2013 (15:22) | Uncategorized | By: Howard Webb

I have been playing a bit with the email process of an SSRS report in AX 2012 as a self-learning exercise. Thought it might be worthwhile to share the code I have written so far. Using real life examples of requested functionality I have changed the SalesInvoice report to:   Create an Email and save […]

Navigating XML with X++

29 September, 2013 (13:30) | Dynamics AX | By: Howard Webb

About a year ago I had the luxury of some self learning time at work. I set about a task to intergrate a mapping utility with route planning. I chose Google maps as it returned an XML file that was easy to read. I wanted to pick up the total distance and time for my […]

Adding to a container with += vs. ConIns()

29 September, 2013 (01:25) | Dynamics AX | By: Howard Webb

While adding data to the end of a container there can be large savings by using += rather than ConIns. Try the code below and compare the results:   static void Containertest(Args _args) { int                            ticks; Container                con; Random                  random = new Random(); int                            myrandom; int                            i; ;   //Start on […]

Using a query with SysLookupMultiSelectCtrl

29 September, 2013 (01:21) | Dynamics AX | By: Howard Webb

If you wish to use the new SysLookupMultiSelectCtrl class there are a few construct methods out there that you can use. If you need to build one using a dynamic query object you can use this construct method, however the problem with this is that the lookup will contain all the fields in your table. […]