
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
By :

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.
This recipe will extend the PKtInventBatchReport built in Chapter 4, Report Programming Model – RDP.
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...
Change the font size
Change margin width
Change background colour