I'm working on Telerik Report Designer (to be specific, not Visual studio)
I'm facing problem in passing multivalue parameter to proc
In proc, I have the parameter as: @parTest varchar(1000)
select data into #Temp1 from Products where data in (@parTest)
If I select a single value, the report runs good
But, if multiple values are selected, then I see the error in preview as :
'Procedure xyz has too many arguments specified'
how to pass MULTIVALUE parameter to db from telerik REPORT DESIGNER?
and how to use that parameter in proc ?
In some thread I saw:
"How do you pass multi value paramas to sql datasource? I am trying to pass multi-value params but receive error as below. Would you please advise on how to do this or do you have an example/sample for multi-value params report somewhere that I can download?
Failed to convert parameter value from a Object[] to a String.
------------- InnerException -------------
Object must implement IConvertible."
Reply:
"The DataSource Components don't work out of the box with a MultiValue Report Parameter since the current implementation is based on ADO.NET and does not allow you to pass a collection of values (set, array). Thus, the SqlDataSourceParameter accepts only single values corresponding to the SqlDataSourceParameter.DbType property. Although this is a known limitation of ADO.NET and not a problem of our product, we're currently working on possible solution for it and it would be part of the upcoming Q2 SP1."
fyi, I'm using Q2 - 2012
I also see:
"Currently the new DataSource Components don't work out of the box with a MultiValue Report Parameter. In order to use a multivalue Parameter you will have to create User Function that bulds a String from multivalue Parameter (Object[]) and use that string to set a SqlDataSource SelectCommand in the NeedDataSource event. Check out the attached sample project that illustrates how this scenario can be accomplished."
how can add the function in telerik report DESIGNER?
I'm facing problem in passing multivalue parameter to proc
In proc, I have the parameter as: @parTest varchar(1000)
select data into #Temp1 from Products where data in (@parTest)
If I select a single value, the report runs good
But, if multiple values are selected, then I see the error in preview as :
'Procedure xyz has too many arguments specified'
how to pass MULTIVALUE parameter to db from telerik REPORT DESIGNER?
and how to use that parameter in proc ?
In some thread I saw:
"How do you pass multi value paramas to sql datasource? I am trying to pass multi-value params but receive error as below. Would you please advise on how to do this or do you have an example/sample for multi-value params report somewhere that I can download?
Failed to convert parameter value from a Object[] to a String.
------------- InnerException -------------
Object must implement IConvertible."
Reply:
"The DataSource Components don't work out of the box with a MultiValue Report Parameter since the current implementation is based on ADO.NET and does not allow you to pass a collection of values (set, array). Thus, the SqlDataSourceParameter accepts only single values corresponding to the SqlDataSourceParameter.DbType property. Although this is a known limitation of ADO.NET and not a problem of our product, we're currently working on possible solution for it and it would be part of the upcoming Q2 SP1."
fyi, I'm using Q2 - 2012
I also see:
"Currently the new DataSource Components don't work out of the box with a MultiValue Report Parameter. In order to use a multivalue Parameter you will have to create User Function that bulds a String from multivalue Parameter (Object[]) and use that string to set a SqlDataSource SelectCommand in the NeedDataSource event. Check out the attached sample project that illustrates how this scenario can be accomplished."
how can add the function in telerik report DESIGNER?