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)

SrsReportDataContractUIBuilder and SrsReportRunController

(0) ShareShare
ReportReport
Posted on by 213

Hi

I have used the UIBuilder class to create a report dialog with a lookup and this works.  The menu item points to the SSRS report

And I have used the Controller class to create a report passing parameters from the caller form.  The menu item points to the controller class.

My question is how do I put the two together so that I can do both?  I want to open a report dialog passing the parameter from the calling form and display a custom lookup from another table and pass both of these into the Data Provider class?

I have searched the internet to no avail for an example

Thanks in advance

Happy to share my code if it helps

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    If the default UI builder wasn't sufficient and you had to develop a custom one, you must associate it with the data contract used by the report. This is done by decorating the data contract class with SysOperationContractProcessingAttribute, which takes the name of the UI build class as a parameter.

    You can use cross-references to find examples in the standard application.

    When this is done, AX will use the custom UI builder automatically.

  • cjohnson300 Profile Picture
    213 on at

    Thank you Martin

    As you stated, I added the SysOperationContractProcessingAttribute into the classDeclaration of the contract class as follows:

    [

       DataContractAttribute,

       SysOperationContractProcessingAttribute(classstr(ProdPartsLabelUIBuilder))

    ]

    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

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