May 26, 2009 at 1:14 pm
Hi Everyone,
Need help in SQL server reporting Services.
I have input parameters like
BachNumFrom, BatchNumTo, StartDate and Enddate
I have Dropdownloist which has values PaymentDate and BatchNumber
When I select PaymentDate in dropdown list I need to Enable Start Date and End date parameters and disable the BatchNumFrom and BatchNumTo parameters.
When I select BatchNumber in dropdown list I need to Enable BatchNumFrom and BatchNumTo parameters and disable the Start Date and End date parameters .
Can anybody please let me know how to do in SSRS report
Thanks in Advance.
Kaladhar
May 26, 2009 at 3:21 pm
I don't think you can enable/disable parameters in SSRS. You could set the parameter values to a specific values like 'N/A' or something like that.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 26, 2009 at 5:56 pm
Hi Jack,
Thank you very much
can you please let me know the exact process to
set the parameter values to a specific values like 'N/A' or something like that.
if you explain some example its very greatful
Thanks
Kaladhar
May 27, 2009 at 1:01 pm
What you can do is, modify your dataset by adding the next to your original select statement:
select '-Not Available-' as BatchNumFrom, '-Not Available-' as BatchNumTo
union
select ..........[your original selection]
Make sure that the name of your selection matches with the original selections.
Then edit your query like (change what you need)
where BatchNumFrom = @ParameterName and BatchNumTo '-Not Available-'
Do this for all your parameters you want to 'disable'.
Now when you run your report, you're able to select the -Not Available-' for your parameter.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply