Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to pass parameter value to SSRS from Ax 2012?

(0) ShareShare
ReportReport
Posted on by 3

Hi All,

I have created one ssrs report with one string parameter. I try to call this SSRS report through output menuitem and x++.

I am using the below code but, the value is not passing to the report. I am sure the value is there in the table.

 

MenuFunction SSRS_Report;

Args Args;

str parmId ="";

 

super();

SSRS_Report = new MenuFunction(menuItemOutputStr(DeliveryReceiptMenuItem),MenuItemType::Output);

Args = new Args();

parmId = "DeliveryReceiptParmId=" + DeliveryReceiptTable.Id;

Args.parm(parmId);

SSRS_Report.run(Args);

 

Thanks in advance,

Hari

*This post is locked for comments

  • Verified answer
    Klaas Deforche Profile Picture
    2,431 on at
    RE: How to pass parameter value to SSRS from Ax 2012?

    Hi,

    I believe this is what you are looking for:

    www.linkedin.com/.../How-can-I-run-SSRS-3793661.S.210858144

    Instead of using menufunction, use the SrsReportRunController class.

    You can use it to directly output to printer too, anything you want really :).

    Hope this helps.

  • Aijaz Profile Picture
    on at
    RE: How to pass parameter value to SSRS from Ax 2012?

    Hi

    Check the following link

    dynamics-ax.blogspot.com/.../expert-ssrs-with-ax-tip-from-michael.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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans