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)

SSRS Report Parameters Hidden

(0) ShareShare
ReportReport
Posted on by

SSRS Report Parameters Hidden

Still not visible after

public boolean showQueryValues(str parameterName)
{
    return true;
}

added to controller class

How can I get the parameters from my query to be visible?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    A wild guess - do you have DynamicFilters set to yes (on your report datasource)?

    Otherwise please explain what kind of report are you talking about (query-based, RDP-based) and what's the problem. Do you miss some particular fields (which ones?), or don't you even have the query selection button?

  • Community Member Profile Picture
    on at

    Yes, DynamicFilters set to yes.

    Using RDP.

    I just want to see parameters and cannot.

    3652.Screenshot.jpg

  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    Is your RDP class associated with any query?

  • Community Member Profile Picture
    on at

    Yes

    [

       SRSReportParameterAttribute(classStr(AMPHMaterialShortageContract)),

       SRSReportQueryAttribute(queryStr(AMPHMaterialShortageReport))

    ]

    class AMPHMaterialShortageDP extends SRSReportDataProviderBase

    {

       AMPHMaterialShortageContract    contract;

       AMPHMaterialShortageReportTmp   materialShortageReportTmp;

       BOM                             BOM;

       BOMVersion                      BOMVersion;

       InventSum                       inventSum;

       InventDim                       inventDim;

       InventItemInventSetup           inventItemInventSetup;

       InventItemPurchSetup            inventItemPurchSetup;

       InventLocation                  inventLocation;

       ProdTable                       prodTable;

       ReqItemTable                    reqItemTable;

       ReqPO                           reqPO;

       ReqTrans                        reqTrans, reqTransReceipt;

       ReqTransCov                     reqTransCov;

       InventSiteId                    inventSiteId;

       LeadTime                        leadTime;

       Qty                             onhand, onhandRec;

       RecId                           maxRecId, lastRecId;

       boolean                         onHandRecord;

    }

    [SysEntryPointAttribute]

    public void processReport()

    {

       Query                   q;

        QueryRun                qr;

        QueryBuildRange         qbr;

       QueryBuildDataSource    qbdsReqPlanVersion;

       QueryBuildDataSource    qbdsReqPO;

       QueryBuildDataSource    qbdsReqTrans;

       QueryBuildDataSource    qbdsProdTable;

       contract = this.parmDataContract() as AMPHMaterialShortageContract;

       q = new Query(queryStr(AMPHMaterialShortageReport));

       qbdsReqPlanVersion = q.dataSourceTable(tableNum(ReqPlanVersion));

       qbdsReqPlanVersion.addRange(fieldnum(ReqPlanVersion, ReqPlanId)).value(contract.parmPlanId());

       qbdsReqTrans = q.dataSourceTable(tableNum(ReqTrans));

       qbdsReqTrans.addRange(fieldnum(ReqTrans, ReqDate)).value(strFmt('<%1', Date2Str(contract.parmCutoffDate()+1,213,

                               DateDay::Digits2,DateSeparator::Hyphen,DateMonth::Digits2,DateSeparator::Hyphen,DateYear::Digits4)));

        qr = new QueryRun(q);

       while(qr.next())

        {

            reqTrans     = qr.get(tableNum(ReqTrans));

           reqTransCov  = qr.get(tableNum(ReqTransCov));

           this.populateTmpTable(reqTrans, reqTransCov);

       }

    }

  • Verified answer
    Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    If you played with the report before adding the query, try refreshing the dataset. You might also see an old, cached version of the dialog.

    By the way, are you aware of the fact that your RDP class don't even try to use the query object? If users were able to add filters, it wouldn't have any effect anyway.

  • Community Member Profile Picture
    on at

    OK, thanks for the help.

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