Applying Validation on Report Parameteres

3 posts, 0 answers
  1. Vasudha
    Vasudha avatar
    3 posts
    Member since:
    Dec 2015

    Posted 22 Feb 2016 Link to this post


    Is there any way by which we can apply validations on report parameter.

    Like Start date should be less than End Date.

    Length of a string type parameter should not be greater than 8.







  2. Stef
    Stef avatar
    3610 posts

    Posted 24 Feb 2016 Link to this post

    Hello Vasudha,

    Please test the following approaches in the context of the Standalone Report Designer:
    1. Use expressions (the built-in or custom functions) to check if the received report parameters values are valid.
    2. If parameters are used in a data-retrieval method, add logic validating the received values before getting data;

    When you use the Standalone Designer tool user functions and custom data objects can be loaded by extending the tool's configuration - Extending Report Designer.

    Let us know if you have any further questions.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Kulasegaran
    Kulasegaran avatar
    3 posts
    Member since:
    May 2016

    Posted 28 Jan Link to this post

    This method works for me.

    1) Add a text box to the report header section.
    2) Give value as "Invalid date range."
    2) Make the visible property false.
    3) Go to 'binding' property in the property box.
    4) Add bindings as follows
       (i)  Property :Visible
       (ii) =iif(Parameters.dDateFrom.Value> Parameters.dDateTo.Value,true,false) 
    5) Click OK button

    Run the report.















Back to Top