I have a report which has a multi-value parameter. Problem is, it can contain up to 100 options.
Is there a way to limit the number of options that is passed to the SQL statement?. EG list has 100 options, user selects 10 but only the first 4 selected options are passed to the SQL statement.
Many Thanks
Delli
I will try an expression for the query parameter (Parameters tab in the dataset properties) which passes your parameter to code-behind function that in turn filters out the parameter values accordingly.|||
After looking into this some more, I’ve found a split
function for MS SQL server, and in PL/SQL. Have system in both databases
:( grrrrrrr
The split function takes in the multi select parameter as a comma separated
list, and creates a virtual table of the results.
By using SQL code similar to the following: select top 10 element
dbo.split('string,split,code',',') I could stop the SQL engine running
for too many selected parameters. A search on Google or msn search ;) will find
codes examples for these functions. Keywords: SQL split function or PL/SQL
split function.
Also helps to inform your users on the front page of the report you have
done this!!!
No comments:
Post a Comment