alcsoft
asked on
Default text value for parameters in SSRS 2008
ASKER
This one will pull the value of the fiels [ALL], I want a static string "ALL"
if you give default value as 'ALL', this will show only when you do not pass any values to the report.
while specifying the values , if you key in [ALL], then also it won't work
what you have to do is, use a query to provide list of values for the parameter filter as shown below
select 'ALL'
union all
select StateName from State
use this to populate the filter and then set ALL as default value
while specifying the values , if you key in [ALL], then also it won't work
what you have to do is, use a query to provide list of values for the parameter filter as shown below
select 'ALL'
union all
select StateName from State
use this to populate the filter and then set ALL as default value
ASKER
I tried 'ALL' as a default value in the box that you see in the pic2 and it did't work!
This box is free text field, I might go with your code if it is drop down menue!
So basically I want a text box have ALL as a default value and if the user want to change it, he will delete (ALL), and write down something like (mile)!
I know in MS2005 I can set such default value using ="ALL"
But here for some reason it won't work!
This box is free text field, I might go with your code if it is drop down menue!
So basically I want a text box have ALL as a default value and if the user want to change it, he will delete (ALL), and write down something like (mile)!
I know in MS2005 I can set such default value using ="ALL"
But here for some reason it won't work!
I support the suggestion made by suresh, but I would add an ID to the query. I assume that the units are coming from a database table, right? And in a normalized structure, this table would contain a numeric identifier. This ID will then be your parameter Value, while the Name field is the parameter Label.
See code for a possible source query for your parameter (adapt to your table/field names).
Your default should then be set to -1.
See code for a possible source query for your parameter (adapt to your table/field names).
Your default should then be set to -1.
select UnitID, UnitName
from UnitTable
union all
select -1, '<ALL>'
ASKER
Please I am using a normal text Box, it is not a drop down menue!
I want to have one value!! which is "ALL"
I want to have one value!! which is "ALL"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes this is what I want.. I knew it is not hard job.... it is just related to the data syntax!
Microsoft keep changing the syntax!!!
Thanks ValemtionV
Microsoft keep changing the syntax!!!
Thanks ValemtionV
[Regions].[RegionsDesc].[A
change to your own needs