Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R3 Reporting Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a report using a controller and the UI Builder class


The controller class is primarily used to manage the report execution. This class is used in the SRS reporting framework to modify the dialog of a report, process the parameters of a report, as well as call SQL Reporting Services.

In this recipe, we will generate an SSRS report in Microsoft Dynamics using the controller class and UI builder class. The controller class extends SRSReportRunController.

How to do it...

  1. The first step is to create a contract class which implements SysOperationValidatable to validate all the report parameters (explained in the previous recipe).

  2. The next step is to create a controller class which extends the SRSReportRunController class. The Main() method is used in the controller class of the report execution.

    public client static void main(Args _args)
    {
        PktRdlCustomerVendorController controller = new PktRdlCustomerVendorController ();
    
        controller.parmReportName(ssrsReportStr(PktRdlCustomerVendorReport...