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

Customize default value of a date parameter

2 Answers 569 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patricia
Top achievements
Rank 1
Patricia asked on 17 Jun 2014, 10:10 AM
Hello,

I'm using Telerik reporting and I have had two datetime report parameters to my report: FromDate and ToDate.

I have set the default value of ToDate parameter to today's date and I would like to set the default value of FromDate to 12 months before today's date. Is there any way of doing that using the functions given on the Edit Expression window (in ReportParameter Collection Editor)?

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Patricia
Top achievements
Rank 1
answered on 17 Jun 2014, 03:30 PM
Done!

= Today().AddMonths(-12)

Thanks anyway
0
Nasko
Telerik team
answered on 20 Jun 2014, 07:22 AM
Hello Patricia,

Note that you can also use User Functions in the expression window. User functions allow you to extend the default behavior of the Telerik Reporting engine. User functions are public static (Public Shared in VB.NET) methods that should always return a value and can take an arbitrary number of input parameters. For more information, please refer to the User Functions help article.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Patricia
Top achievements
Rank 1
Answers by
Patricia
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or