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

Debugging a report model


One challenge that comes along with the new reporting model is debugging. Different approaches for debugging issues must be taken based on the context. This is a short recipe that will tell you the configurations to debug the report model and the possible methods where the debugging points would be appropriate to start.

How to do it…

To debug framework-related classes the AX debugger can be used:

  1. Under developer options, make sure the Execute business operations in CIL flag is unchecked to enable you to debug the code in X++ debugger.

  2. The following methods are ideal to place your debugger to examine the execution:

    • Controller: PrePromptModifyReport, PreRunModifyReport

    • UI Builder: build

    Note

    You must first open your debugger manually to use it. Then run your code.

Changes to model and adding new classes

This subsection is about refreshing the code when you make changes to the model or framework classes.

When changes are made to the query by adding ranges or fields, ensure...