cascading parameter

Who is online?  0 guests and 0 members
Home  »  Forums   »  microsoft business intelligence   »  reporting services   » cascading parameter

cascading parameter

Topic RSS Feed

Posts under the topic: cascading parameter

Posted: 4/26/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

hi,

i need to have cascading parameter ,

there is 1 boolean parameter,if i click on true,the other parameter's drop- down should enable.If i choose false

it will be disable.

How to do that?


Posted: 4/26/2012

Jedi Master 2811  points  Jedi Master
  • Joined on: 2/19/2010
  • Posts: 406

Enabling or disabling parameters based on the value selected in another parameter is not really possible, at least in the versions I work with.  What I would do instead is create a single parameter (your second parameter) with a value of "None" or something like that so the user can choose not to use any values from the parameter.  Your SQL gets a little tricky this way but it is possible, and it works.


Posted: 4/26/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

ok.how to get none in the parameter,i am not getting it


Posted: 4/26/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

hi daniel,

 

this is just simple question.

 

i need to put in my parameter like this, group name - value

 

so when i run report there should already be group name,not any drop dpwn ,just in text box.(user do not ned to select ,there should be already grouop name,just single line,now any drop - down box

 

i need to do in parameter.

anyt idea?

 


Posted: 4/27/2012

Jedi Master 2811  points  Jedi Master
  • Joined on: 2/19/2010
  • Posts: 406

To get None as a selection option in your parameter use Union like this

SELECT 'None' AS columnName

UNION

SELECT the rest of your parameter data here


Posted: 4/27/2012

Jedi Master 2811  points  Jedi Master
  • Joined on: 2/19/2010
  • Posts: 406

For your second question, I am not sure I understand.  If the user does not need to select a group, then why do you need it to be a parameter?  If you really need it to be a parameter, but you don't want the user to select it, you want the value hard coded or something, then make your parameter hidden or internal.


Page 1 of 1 (6 items)