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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to use Controller class with data provider class

(0) ShareShare
ReportReport
Posted on by 2,055

I am using AX 2012. I have develop enough reports with Data Provider class. But new bee with controller class.

I need to use the controller class to show the multiple design of the report depending on the condition. Now I have develop controller class and all my logic in it.

I am thinking how Data Provider class will come to know the that this is my controller class. Like we add reference of contract class in Data Provider class. How we will add controller class reference in Data Provider class or I have to add Data Provider class reference in controller class. If some one can explain its mechanism, how controller is used. I will be much thankful. 

I have study some AX controller classes but it  did not solve my confusion. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Hariharans87 Profile Picture
    3 on at
    RE: How to use Controller class with data provider class

    Hi,

    When you click the repot menu, the menu item only call the SSRS report not the RDP class. So, SSRS report is calling the report used RDP class and get the data.

    Menuitem -> SSRS report -> RDP Class (RDP class <-> Contract <-> UI Builder)

    But, controller is different. It is only calling the SSRS report (it is simply doing the menu item report calling job).

    Please refer the following links

    daxture.blogspot.in/.../rdp-contract-ui-builder-and-controller.html

    stoneridgesoftware.com/understanding-report-controller-classes-in-dynamics-ax-2012

    Thanks,

    Hari

  • Hariharans87 Profile Picture
    3 on at
    RE: How to use Controller class with data provider class

    Please refer the report programming model white paper www.microsoft.com/.../details.aspx

    You can also control the contract class (e.g. set the default value in the report dialog box) and UI builder class by using controller class.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans