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

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.

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