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

Calling multiple reports from a controller

A single controller can be used to invoke multiple reports. This recipe will discuss how to use the same controller for different reports and the security set up for multiple reports from a single controller.

How to do it…

  1. Here we have modified our method to choose two different reports: one developed in Chapter 2, Enhancing Your Report – Visualization and Interaction and the other from the current chapter. In this we will invoke the multiple reports using the single controller:
    public static void main(Args args) { PktRdlItemTransController controller; controller = new PktRdlItemTransController(); if (args && args.record()) { switch (args.record().TableId) { case tableNum(InventTable)):controller.parmReportName(ssrsReportStr(PktRdlItemTransList, ...

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