Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook

Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook

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

Connecting the UI builder class with a contract class


A contract class is used to define one or more parameters that are used in an SSRS report. It consists of parm methods with DataMemberAttribute, which is defined at the beginning of the parm method. If users want to customize the parameters in the report dialog, then they will require the UI builder class and will need to connect the UI builder class with the contract class. The SysOperationContractProcessingAttribute class is used to link the UI builder class with the contract class in an SSRS report in Microsoft Dynamics AX R3.

Getting Ready

In this recipe, we will link the contract class with the UI builder class. This can be done by using the BindInfo method of the UI builder class, which binds the dialog controls bounded to a report contract.

How to do it...

Create a contract class to link with the UI builder class as follows:

[
   SysOperationContractProcessingAttribute
(classStr(PKTRDLCustInvoiceUIBuilder))
]
public class PKTRDLCustInvoiceContract...