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

Announcements

News and Announcements icon
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 65

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

I have the same question (0)
  • Aijaz Profile Picture
    on at

    Hi

    Check the following link

    dynamics-ax.blogspot.com/.../expert-ssrs-with-ax-tip-from-michael.html

  • Verified answer
    Klaas Deforche Profile Picture
    2,433 on at

    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.

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 June 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