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

Inventory dimensions in reports


An inventory dimension is like a lifeline for trade and logistics, and its presence in reports is indispensable. There is usually a good framework support for the inventory dimension in AX and that continues into the reporting framework. We will explore how to use the standard framework to easily handle inventory dimensions in this recipe. This recipe will also demonstrate nested contracts through this example.

The recipe will add inventory dimensions to the report design and create control parameters that will determine if an inventory dimension is displayed in the report.

Getting ready

This recipe will extend the PKtInventBatchReport built in Chapter 4, Report Programming Model – RDP.

How to do it…

  1. Modify the temporary table of the report to include the dimension field.

  2. Open the contract and add a parm method—which will add a Boolean flag for each inventdim field—as shown in the following code:

    [DataMemberAttribute('InventDimViewContract'),
    SysOperationControlVisibilityAttribute...