O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, Kamalakannan Elangovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a datasource through business logic

This recipe will show how a simple datasource can be created and used as a source of data through the business logic option in reports.

Getting ready

This recipe requires that you have access to Visual Studio with the Dynamics AX reporting extension.

How to do it...

  1. Create a new reporting project called PktExchRateReports in Visual Studio.
  2. Add a report and name it PKTExchRateDataTable.
  3. Right-click on the Data Method node and create a new method as shown in the following screenshot:
    How to do it...
  4. Double click the TestMethod node. This adds a new C# project to the solution and a C# class with the same name as the report.
  5. Replace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required