Bojensen Blogs

Use a Dynamics AX display method in SSRS report | Arjen Stolk

There are a lot of display methods that I would like to use in a SSRS report. Here is an example of the use of the display method ‘reservedPhysicalInSalesUnit()’ from the sales line. In order to use this method, you need to be able to identify the sales line. For this you need the SalesId and the LineNum. So while creating your AX query in the AOT, do not forget to add these fields.

In the SSRS report you need to use the method CallStaticRecordMethod from the Microsoft.Dynamics.Framework.Reports libraryto retrieve the record and then the method Call to fire the method in AX, like so:

Use a Dynamics AX display method in SSRS report | Arjen Stolk

Comments are closed.