Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to pass parameter value to SSRS from Ax 2012?

Posted on by 4,971

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
    Klaas Deforche 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
    Aijaz 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans