Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Data Provider Parameters

Posted on by 375

Hello Every one,

  I have the following ssrs report using data provider i need to select all warehouses when the warehouse filter is null how can i write this in select statment

6281.png

0726.png

*This post is locked for comments

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Data Provider Parameters

    Hi Nikolaos ,

    thank you very much it working with me when i use the query

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Data Provider Parameters

    And of course you can add a standard query in your report. I see now that you haven't added any query to your data provider. Depending on your requirement, maybe you can handle the Warehouse field, and also others, with the standard query.

    This should be your primary tool. You should add custom data provider dialog fields only if the report query isn't sufficient to resolve your requirement.

    docs.microsoft.com/.../how-to-use-a-query-in-a-report

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Data Provider Parameters

    Hi Nikolaos,

    I already do this but what can i do if i have multi parameters it's very defucult to use if statement

    30511.png

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Data Provider Parameters

    Then you can do as I suggested and use an x++ query instead of a select statement.

    Yes, you still need to use if statements to add ranges to the query, but I don't see that as "very difficult". Why do you say it's very difficult?

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Data Provider Parameters

    Hi Nikolaos,

    I already do this but what can i do if i have multi parameters it's very defucult to use if statement

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Data Provider Parameters

    You need to have two versions of the select statement, one with the warehouse filter and one without. Then, depending if _warehouse is '' or has value, you run the corresponding select statement.

    Instead of two different select statements, you can also use a Query object, and add a range for warehouse number only if _warehouse has value.

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