SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Resetting Parameter Default Value


Resetting Parameter Default Value

Author
Message
efrydendall
efrydendall
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 19
I have two parameters, ParameterA and ParameterB.

I want to set the default value of ParameterB based upon the selected value of ParameterA.

Step 1
The first time a value is selected for ParameterA, the default value for ParameterB is set based on the value of ParameterA. This works fine.

Step 2
The next time a value is selected for ParameterA, I want the default value of ParameterB to be reset to a new value based on the new value of ParameterA. This is not working.

First, is it even possible to get Step 2 to work?

Second, if it is possible to get Step 2 to work, how can it be done?

Thank you.
Tee Time
Tee Time
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1039 Visits: 465
Does it work if you deploy the report to the report server?
Scott Murray-240410
Scott Murray-240410
SSC Eights!
SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)

Group: General Forum Members
Points: 975 Visits: 3142
You need to make sure the parameter is set to refresh on change... Go to the parameter properties... Then to the advanced window... make sure the Refresh data when parameter changes is set appropriately.
ndiro
ndiro
SSC-Enthusiastic
SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)

Group: General Forum Members
Points: 152 Visits: 216
Are ParameterA and ParameterB Multivalue DropDownList?
In this case the behaviour of DefaultValue is quite complicted.

Let me know and i'll try to explain....
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search