|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Saturday, February 02, 2013 11:09 AM
Points: 97,
Visits: 180
|
|
Hi all,
I met with a very tricky problem. I have a muti-value filter in my name whereby user are able to select the names to view the report. The parameter filter has a drop down list which is based on query, Select distinct(uName) from User. the report runs fine if user select a number of names but if the user select ALL or more names the report went haywire. Error: "operation is not valid due to the current state of the object"
After diagnosis, i realize its becuz the filter text cant hold or display the names chose. what should i do? The filter is used in data source where clause as Where uName IN (@name)
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Saturday, February 02, 2013 11:09 AM
Points: 97,
Visits: 180
|
|
| can i trim the filter to display only up to 100 char?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 1:18 AM
Points: 357,
Visits: 308
|
|
is this a stored proc?
if so, extend the variable declaration to accept the additional text.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 2:30 AM
Points: 140,
Visits: 491
|
|
10e5x (1/14/2013) Hi all,
I met with a very tricky problem. I have a muti-value filter in my name whereby user are able to select the names to view the report. The parameter filter has a drop down list which is based on query, Select distinct(uName) from User. the report runs fine if user select a number of names but if the user select ALL or more names the report went haywire. Error: "operation is not valid due to the current state of the object"
After diagnosis, i realize its becuz the filter text cant hold or display the names chose. what should i do? The filter is used in data source where clause as Where uName IN (@name) Whenever you are using Multivalued parameters, pass them as comma separated to the query or stored procedure used in your dataset. To achieve this, use "join(Parameters!xx.Value,",")".
--Divya
|
|
|
|