web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Active Discussion

Report structure - order of events

(1) ShareShare
ReportReport
Posted on by 3,542

I have been under the impression that the structure is the following:

MenuItem calls controller. Controller uses DP, which in turn uses contract. Contract prompts for user input. Data selection and creation is completed >> report is generated.

I now find it better to view this structure as the following:

MenuItem calls controller. Controller calls Report (referring to the AOT element), which uses the DP and contract to display a dialog. Meaning it is the report that fires the dialog. Data selection completed >> report design generated.

What happened in my case:

I have learned the whole concept of Controller, Contract, DP that handle the report. The first step in generating a report is obviously to get all the data. To be able to build this structure, it is needed to create a dummy report with a dummy design. But then as you go along the contract and DP change - AOT report goes out of sync.

I had this problem:

1) Dialog correctly prompts for parameters specified in contract with parm methods.

2) DP uses these parm methods for data selection.

3) For some reason these values are null when they are retrieved in the DP.

Then you go off on a crusade to the holy land of debugging and frustration: you rebuild, redeploy report, clear cache, clear user data, change any possible property that can have an influence.

But as usual when you struggle too long with an issue: you're looking in the wrong place.

The dialog parameters originate from the report and not from the contract (for reasons beyond my current understanding).

In summary. Report design should not be seen as (Controller + DP + Contract) >> Report Design

The correct view is: (Controller + Report AOT Element + DP + Contract) >> Report Design

Or even: Controller >> Report AOT Element >> DP + Contract >> Report Design

This is my humble first discussion (maybe it should've been a question) - I'm still relatively new. But I wanted to share because this was the cause of a days of frustration to me - hopefully it will help someone in future.

A bit unrelated insight on report parameters (helped me): https://stoneridgesoftware.com/report-parameters-in-dynamics-ax-2012-ssrs-reports/

Thanks for reading!

*This post is locked for comments

  • Martin Dráb Profile Picture
    239,178 Most Valuable Professional on at

    No, DP classes doesn't show dialogs.

    It's more like this:

    1. A menu item or code calls a controller.
    2. The controller calls a UI builder to create a dialog for the contract.
    3. User fill in values of the contract.
    4. Contract gets serialized and either sent to a report or stored in DB (for scheduled runs).
    5. When the report gets executed, the contract gets deserialized and sent to the RDP class (note that it's a bit different for pre-processing).
    6. The RDP class receives the contract and provides data based on the values. Notice that it knows completely nothing about any controllers, dialogs and things like that. All it has it's a data contract.
  • Pete Alberts Profile Picture
    3,542 on at

    Thanks for the clarification. Much appreciated!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans