Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Passing Current record's value in Parameter dialog box of SSRS report

(0) ShareShare
ReportReport
Posted on by 95

Hi everyone,

I need to create a custom report so that when I select a record and click on the menu item button that runs the report. firstly a parameter dialog box should open up with pre selected quantity field from the record. And then the report should run when I hit OK.
I have created a UI Builder class to build the dialog box but I don't know how I can automatically fill the quantity dialog field in that.
Rest everything I have successfully completed.

Please help, Its urgent.

*This post is locked for comments

  • Suggested answer
    BrandonSA Profile Picture
    BrandonSA 1,669 on at
    RE: Passing Current record's value in Parameter dialog box of SSRS report

    Hi Ayush

    You will also need to update your controller and contract class.

    Here are some examples:

    rajendraax.wordpress.com/.../ssrs-report-by-using-controller-class-sample-code

    This one might be really useful, except this one tries to bypass the dialog altogether. You could modify this code so that the dialog shows - just populated with your values: (this is where ievgen's response comes into play)

    www.bhsolutions.com/.../how-to-launch-an-ssrs-report-from-ax-with-pre-loaded-parameters

    Hope this helps

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Passing Current record's value in Parameter dialog box of SSRS report

    You can override preRunModifyContract method of the controller as shown in this blog 360dynamics.blogspot.com/.../ax-2012-prerunmodifycontract-method-in.html

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans