Hi,
In my report, a parameter has list of values in a drop down list (3 static values - Yes, No, Both). If user selects "Both" the results should contain all values with status Yes and No. My stored proc acheives this as -
ColumnName = @.Parameter + '%' in where clause.
I created Non-Queried list of values with Both as "" (empty string). When I run the report, the report is not getting any values. The matrix is empty where as the dataset and stored procedure are picking values for the same. ("" , empty string in the status parameter)
Is there any way the RS considers the empty values ? How do I achieve this ?
Regards,
Chiro
Ok,
Let me make it clear. The stored proc has a default parameter "Status" for which if you neither give "YES" nor give "NO" it gets results for all YES and NO status. This is acheived as
1. I defined stored procedure as - CREATE PROCEDURE ProcName @.Status = '%' varchar(10), @.Param2 varchar(10).......
2. In where clause - ColumnName = @.Status + '%'
Now if you just execute query without any parameters, it gets all values for status YES as well as NO. This is working fine.
I want to display all these results in a report. I created a list of values parameter with values YES, NO, BOTH for status. I allowed Null and Blank for the parameter.
I am binding the data to a matrix. When I run the report without giving any value to status, it is not displaying results in the matrix at all. Ideally it should display all values with status YES and NO.
Can any one tell me if there is any thing which I am missing here.
No comments:
Post a Comment