Hi,
I am working on telerik reports and used a function for selecting all values by default
for multivalue parameter, i am using value in parameter like 'AllValues(Parameters.ParameterName.Value)',
and function is written in report code behind as-
[AggregateFunction(Description = "Collects all values", Name = "AllValues")]
public class AllValuesAggregateFunction : IAggregateFunction
{
ArrayList values;
public void Accumulate(object[] values)
{
var value = values[0];
this.values.Add(value);
}
public object GetValue()
{
return this.values;
}
public void Init()
{
this.values = new ArrayList();
}
public void Merge(IAggregateFunction aggregateFunction)
{
var otherFunction = (AllValuesAggregateFunction)aggregateFunction;
this.values.AddRange(otherFunction.values);
}
}
now i have some parameters which are added from code , how can i use this function for those parameters
this.ReportParameters["Department"].Value= ??
I am working on telerik reports and used a function for selecting all values by default
for multivalue parameter, i am using value in parameter like 'AllValues(Parameters.ParameterName.Value)',
and function is written in report code behind as-
[AggregateFunction(Description = "Collects all values", Name = "AllValues")]
public class AllValuesAggregateFunction : IAggregateFunction
{
ArrayList values;
public void Accumulate(object[] values)
{
var value = values[0];
this.values.Add(value);
}
public object GetValue()
{
return this.values;
}
public void Init()
{
this.values = new ArrayList();
}
public void Merge(IAggregateFunction aggregateFunction)
{
var otherFunction = (AllValuesAggregateFunction)aggregateFunction;
this.values.AddRange(otherFunction.values);
}
}
now i have some parameters which are added from code , how can i use this function for those parameters
this.ReportParameters["Department"].Value= ??