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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Contract and controller class

(0) ShareShare
ReportReport
Posted on by 180

Hi All,

How to fetch data in controller and contract class to create a report? I'm already done in generating xml file, but the metadata doesn't any information from the table that I've used.

Thanks for the response.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    If you are referring to ssrs report, then DP class need to be implemented where it helps to create/fill the data in the temporary table. Basically Controller class acts as an entry point and contract class helps to handle the dialog.You can check processReport method of CustTransListDP class(SSRS report: CustTransList, Path: \Menus\AccountsReceivable\Reports\Transactions\Customer\Transactions) .

    Please refer following links:

    (RDP, Contract, UI Builder and Controller classes for SSRS report Development)

    community.dynamics.com/.../rdp-contract-ui-builder-and-controller-classes-for-ssrs-report-development&nbsp

    (Developing SSRS report using Query in Microsoft Dynamics AX 2012)

    community.dynamics.com/.../developing-ssrs-report-using-query-in-microsoft-dynamics-ax-2012

  • ron_ron Profile Picture
    180 on at

    Hi All,

    How to transfer data from controller class to contract class in AX?

    I tried it but when it comes to infolog, its value is null.

    Thanks.

  • ron_ron Profile Picture
    180 on at

    Hi All,

    Query, contract, and controller classes for report development.

    Thanks.

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    I am bit confused with your question, what is that you want to transfer between controller class and contract class.As I mentioned earlier, contract class is used to handle dialog, probably you might be referring to DP class or service class.

  • ron_ron Profile Picture
    180 on at

    Hi,

    In controller I select invoice number, then the value of method for num in contract class is null. How can I pass the value of selected row from controller class to contract class?

  • ron_ron Profile Picture
    180 on at

    Hi,

    I'm already done in passing. But how can I get the return value of a method from another class?

  • Suggested answer
    István Orosz Profile Picture
    2,137 on at

    Hi,

    The easy way to transfer parameters between the two of them is to use parameters like:

    salesInvoiceContract.parmInstanceType(detail.parmType());
    salesInvoiceContract.parmIdentificationText(detail.parmIdentificationText());
    
    
    


    like in SalesInvoiceController. Please let us know, if that is what you need?

    Kind Regards,

    István

  • ron_ron Profile Picture
    180 on at

    Hi,

    I'm already done I passing recId to contract but how can I get the return value of methods in contract? I just want to get value for the initialization in my A2Xreport.

    Thanks.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans