I have a SSRS report that I am using a query to get the available value for the parameter.Ā I am also using the same query to get the default value for the parameter.Ā Is it possible in SSRS to get the value from the query but also allow the end user to change the value of the parameter before they click view report button.Ā ThanksĀ
Drew G. Rosen Carolina Services of Fayetteville, Inc. 910-221-3561
It sounds like you have a single parameter and given that you are providing a default, SSRS is immediately launching the report. However, you’d prefer that the user have a chance to change the default before running. Is that about right?
I recally running into this annoyance. I think it is SSRS’s programmed behaviour unfortunately. I can’t recall exactly which option I chose to work around the problem, but just found this Stackoverflow post with a few approaches to work around it. I must have done something similar.
Sorry I can’t be more help.
Paul
—————————— Paul Richard Programmer-Analyst Ville de Dieppe —————————— ——————————————-
A lot depends on how you have the parameter defined.Ā In most cases, you want a specified list of selections for the user to constrain things to only valid options.Ā That means that if you want to use a default, that’s fine, but you need to be more expansive when you present the list of options.Ā I use dynamic lookups frequently, even in conjunction with default values.Ā The most common place I used them is for date values, where I present a list of month end dates but default to the most recent one.Ā You can even make it so the lookup only lists say the past three years worth of dates rather than dates ten years in the past.
Here’s one thing that I think is hanging you up: the default.Ā The report will only ask for user input if some of the required parameters don’t have values, i.e. no defaults.Ā If you supply defaults, the report is always going to run with those defaults and the user will only be able to change the parameters and re-run the report after it has executed once with the default values.Ā If you want the user to be able to select a value before the report executes, you must declare at least one variable as “required” but NOT supply a default value for it.
If you need specific ideas, you’re welcome to email me personally.Ā I’ve built over a hundred SSRS reports with varying degrees of complexity and I’d be happy to help if I can. ?
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!