Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Parameter Dependency


Parameter Dependency

Author
Message
ch.ds19
ch.ds19
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 132
have 4 parameters (District,Region,State,Country)in a report. In this If I change the fourth parameter(Country) then the values for the parameters District,Region,State to be change according to the value chosen in the fourth parameter country.

Ex:the country parameter contains the values INDIA,USA,UK,RUSSIA... then If I choose INDIA, then the state should be change to Karnataka, Region=Southern, District=Kolar, like this if I choose USA then the state, Region, District values should be change to the corresponding values..

Is it is possible to Implement this scenario, anybody help me to implememt...?
Thanks in advance.
thetodaisies
thetodaisies
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 Visits: 166
Create datasets for each parameter values with each dataset query is filtered with the value from the other parameter value except country.

for eg
create sate dataset with query like
select State from tblState where Country=@Country
@Country is passed from the Parameters!Country.value in dataset properties-Parameters section

goto State param --Available values -->From Query -->[Select state dataSet] -set Value field and LabelField

do the same for District and Region with State and District params respectively
Nemo - 4828
Nemo - 4828
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: 306
Looks like you are working with cascading parameters.

The below link tells you in detail how to create them.

http://msdn.microsoft.com/en-us/library/aa337169.aspx


Thanks,
Nemo
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