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…
Modify the temporary table of the report to include the dimension field.
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...