Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to set filter the data of the related records. This allows a user to select a range "From" and "To" and both values can be null or mutually exclusive in ssrs report

Posted on by 884

Hi All,

Filter by Amount From:-

                                These variables will filter the data of the related records. This allows a user to select a range "From" and "To" and both values can be null or mutually exclusive.

7367.11.PNG

1.From:Can be NULL or can contact a dollar value. This variable is mutually exclusive and does not need a value in the “To”

2.To:A user can only enter a value here if they have entered a value in the “From” variable

Thanks

*This post is locked for comments

  • CRM Develope Profile Picture
    CRM Develope 884 on at
    RE: How to set filter the data of the related records. This allows a user to select a range "From" and "To" and both values can be null or mutually exclusive in ssrs report

    No. How to allow blank values for multitple parameters in ssrs parameter.

    above Image So something like this(How to sql Query to fetchxml Queary.COnvertoFethcxml.png

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: How to set filter the data of the related records. This allows a user to select a range "From" and "To" and both values can be null or mutually exclusive in ssrs report

    Hi,

     are you asking about an SSRS report or about a grid? If it's an SSRS report, are those two going to be the parameters of that report?

     If you have a fetch query, why can't you pass those parameters to the query?

    blogs.msdn.microsoft.com/.../fetch-xml-based-reports-bits-pieces

     As for making them mutually exclusive.. not sure it's possible.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: How to set filter the data of the related records. This allows a user to select a range "From" and "To" and both values can be null or mutually exclusive in ssrs report

    After the change events of the fields, or on the click of a button, call a javascript function to check for the values from your two text controls, and then filter the results.

    In order to filter the results you will need to get the name of the grid, create a fetchXml string that contains the query that you need to set, and apply the setParameter function with the fetchXml string:

    var grid = document.getElementById("accountcontractsgrid");

    or

    var grid = window.parent.document.getElementById("accountcontractsgrid"); // CRM 2015SP1+

    var fetchXml = "YOUR_FETCH_XML_STATEMENT";

    grid.control.SetParameter("fetchXml", fetchXml);

    grid.control.Refresh();

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans