I reviewed the article about the three possible causes for this error but none seem to apply for my situation. My function is very simple with no parameters, so #2 and #3 can't apply, plus I've rebuilt the project many times so I don't think it is #1. The error goes away when i set Visible=false for the parameters' UI. I was able to choose the function from within the ReportParameter Collection Editor under "User Functions", and the Editor then automatically set the Value of the parameter to "= GetDefaultFromDate()" (without the quotes)
GetDefaultFromDate() is defined in the same class as the report as the following:
This is for an ASP.NET 3.5 website written in C#. I was first using Telerik Reporting Q3 2009, but upgrading to Q1 2010 did not resolve the issue. Please let me know if you need any other information to understand my problem.
Thanks,
David
GetDefaultFromDate() is defined in the same class as the report as the following:
public static DateTime GetDefaultFromDate() |
{ |
return DateTime.Now.AddMonths(-1); |
} |
This is for an ASP.NET 3.5 website written in C#. I was first using Telerik Reporting Q3 2009, but upgrading to Q1 2010 did not resolve the issue. Please let me know if you need any other information to understand my problem.
Thanks,
David
The expression contains undefined function call GetDefaultFromDate(). |
at Telerik.Reporting.Expressions.FunctionNode.Eval(Object row, Object context) |
at Telerik.Reporting.Processing.ParametersManager`1.CalculateValue(T parameter, Object definitionValue, IDictionary`2 newValues) |
at Telerik.Reporting.Processing.ParametersManager`1.Calculate(T parameter, IDictionary`2 parameterValues) |
at Telerik.Reporting.Processing.ParametersManager`1.GetParameters(IDictionary`2 parameterValues) |
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e) |
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |