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.
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 theMarshaller
class to pass the prefilled table to the RDP.We have used...