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)

Hiding Query Parameters in AX 2012 SSRS Report Dialog

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to hide the dynamic query parameters in a AX 2012 SSRS report dialog.

The report datasource is a query, which has a  few predefined ranges. But in the report dialog, I just want to see the printer select box and not the query range fields with their predefined values. I set the status of the query ranges to hide, but ist had no effect on the dialog.

Is it possible to hide all the parameters at once for the report dialog?

Thx, Markus     

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    If you use a report controler class, you can overwrite the showQuerySelectButton method and return false.

    Regards, Dirk

  • Verified answer
    Bill 'Luther' Thompson Profile Picture
    on at

    Hello,

    If you remove the ranges from the modeled query, and add them back programmatically in the methods of the query, they also will not show up as parameters for the report.

    Best Regards,

    Bill Thompson

    Dynamics AX/Sure Step - Online Support Engineer

    ============================================================

    When responding to posts, please 'Reply to Group' via your newsreader so that

    others may learn and benefit from your issue.

    ============================================================

    This posting is provided 'AS IS' with no warranties, and confers no rights.

    ============================================================

  • Markus Behde Profile Picture
    on at

    Thanks for the help.

    I've tried both solutions und now I've just to choose, which one I use. :-)

    Regards, Markus

  • Suggested answer
    Community Member Profile Picture
    on at

    You have to override the showQueryValues()  of controller class and return false

  • aaa510 Profile Picture
    400 on at

    What about the contract class parameters ? I tried to set the parameter's property to hidden in  visual studio , it does not help.

  • venkatesh vadlamani Profile Picture
    3,180 on at

    Raj_kumar's answer is the most suited as you dont want to show query ranges and the button

    @ aaa510

    contract parameters are can definately be hidden . Look at any report that uses srstmpTableMarshaller class (Pseudo tmp table report's ). or  any document reports . Journal record id is generally passed from controller --> Design (via parameter value in contract class) -- >DP class.

    But still its not visible on the report

    All you need to is set its property to hidden in VS

    I feel its more like issue with the usage data.

    Once you set the property to hidden you need delete the report from report manager and then redeploy

    remove usage data , delete records

    in SYSLastValue , SRSReportQuery

    restart Reporting services

  • aaa510 Profile Picture
    400 on at

    @venkatesh vadlamani  Thank you for your reply.

    This morning when I try to run the report the parameter is hidden, i have not changed anything since yesterday I set the property to hidden, I think that it is the normally cache problem some I have had before.

    anyway it works now, thanks again!

  • nagaraj Profile Picture
    2,340 on at

    All are suggesting controller class but If the report is Query based report how can we achieve this? Without controller class can't we achieve this one through visual studio properties?

  • venkatesh vadlamani Profile Picture
    3,180 on at

    Allow dynamic filtering false and remove the dynamic parameter. redeploy the report and refresh the user cache.

    This should do

  • nagaraj Profile Picture
    2,340 on at

    Thank you Venkatesh, it is working fine.

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