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

Calling multiple reports simultaneously using a single controller


In the previous recipe, we explained how to call multiple reports using a single controller. But in this recipe, we will explain how we can call multiple reports simultaneously. This means we will print multiple reports from a single trigger point.

In this recipe, we will show how to print the two SSRS reports together using a single controller in Microsoft Dynamics AX R3.

How to do it...

  1. Suppose on the clicked method of any control of a form, we need to print two SSRS reports simultaneously. For that, firstly we need to create two menu items to call two SSRS reports. To create the menu item, follow these steps:

  2. Go to AOT | Menu Item | Output and right-click on it. Create a new menu item named PKTRDLCustListMenu. Similarly, create another menu item and name it PKTRDLVendListMenu.

  3. Assign the SSRS report to both the menu items (as discussed in the previous recipe).

  4. The controller class extends the SRSReportRunController class. In...