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

Using an existing temp table in RDP


Temporary tables in AX are used in existing business logic and also as a data source in some forms. The reporting framework provides the ability to use these temporary tables filled outside in a form or a business logic, to be copied to the RDP without re-implementing the business logic. The reporting framework offers the ability to do this through a set of helper classes: SRSTmpTableMarshaller and SRSTmpTblMarshallercontract.

This recipe will simplify and make it easy to understand the temporary table pattern. This pattern helps in designing RDP reports faster when the temporary table and logic to fill it already exists.

How to do it…

  1. To better understand the Marshaller class and its usage, we will use the interest calculation example. In this example, the interest calculation is done in a form using a temporary table. The simulation in the form must be printed in a report. We will use the Marshaller class to pass the prefilled table to the RDP.

    We have used...