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

Turning off a report dialog


When no user interaction is required, the report can be run directly without the report dialog. This short recipe will show how this can be done.

How to do it...

  1. In the controller class of the report, add the following code:

    public static void main(Args args)
    {
        PktRdlItemTransController controller;
    
        controller = new PktRdlItemTransController();
        controller.parmReportName(ssrsReportStr(PktRdlItemTransList, ItemTransList));
        controller.parmArgs(args);
        //turn off dialog
        controller.parmShowDialog(false);
        controller.startOperation();
    }
  2. Run the report to see that the report opens up directly without any prompts.