This is a migrated thread and some comments may be shown as answers.

Applying Validation on Report Parameteres

2 Answers 107 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Vasudha
Top achievements
Rank 1
Vasudha asked on 22 Feb 2016, 08:17 PM

Hello,

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.

 

Thanks

Vasudha

 

 

 

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Feb 2016, 05:32 PM
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.

Regards,
Stef
Telerik
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
0
Kulasegaran
Top achievements
Rank 1
answered on 29 Jan 2018, 04:56 AM

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.








 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tags
Report Designer (standalone)
Asked by
Vasudha
Top achievements
Rank 1
Answers by
Stef
Telerik team
Kulasegaran
Top achievements
Rank 1
Share this question
or