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)

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

  • 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  

    (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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans