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

Adding a URL drill through action in reports


A URL drill through action is similar to the View Details option in a form. AX supports a URL mechanism that can be processed to open a form with the appropriate record highlighted.

How to do it…

  1. The first step is to identify the URL builder that will be used to construct the URL. The SRSDrillThroughCommon project consists of a list of helper classes for different modules.

  2. In Visual Studio, go to AOT | Visual Studio Project | C Sharp Project | SRSDrillThroughCommon.

  3. Right-click and select Edit. This will add the project to the current report solution.

  4. Search through the drillThroughCommon C# class for prebuilt methods for the field.

  5. In this case, the field is Voucher and the finance helper classes have a prebuilt function that can handle drill through for vouchers.

  6. Navigate back to the PktRdlItemTransList.BusinessLogic, right-click, and add the SRSDrillThroughCommon project as a reference.

  7. Add the following namespace to the PktRdlItemTransList C# class...