all groups > sql server reporting services > july 2005 >
You're in the

sql server reporting services

group:

Using a parameter to control if detail shows initially with drill


Using a parameter to control if detail shows initially with drill Bob Hansen
7/27/2005 4:22:03 PM
sql server reporting services:
Hi SRS-ers,

I have been trying to figure out how to have a 'Show Detail?' parameter to
control the inital look of a report that has the toggle drill downs.

I can't get the expression to work for turning the toggle on from Collapsed
to Expanded. Also if I change the InitialToggleState to "Expanded' on my
ToggleItem,
it displays the "-" but doesn't have any affect on the Detail whose
visibility is tied to it. Has anyone figured out how to make this work. It
seems like it is designed to work, but I can't get either to fly.

Also can you have 2 toggle items on a report, like 1st group level State
expand to show Counties and then expand that to show cities?

THANKS!!! for the help,

Bob
--
RE: Using a parameter to control if detail shows initially with drill Antoon
7/27/2005 11:44:03 PM
What you have to do is put the toggle item on (at least) the first higher
group level
Fe.
year country city value
you make 3 row-groups: year, country, city
you make year the parent group of country and country the parent group of city
the togle item of city is the "country-textbox", the toggle item of country
is the "year-textbox".
You could also use a toggle item outside the matrix (fe title field or a
seperate textbox).

Hope this helps




[quoted text, click to view]
RE: Using a parameter to control if detail shows initially with dr J Wood
8/10/2005 12:41:07 PM
I'm having the same problem
I have Company, Division, Department, Employee as groups
Company is the parent of Division
Division is the parent of Department
Department is the parent of Employee

Employee toggleitem is set to Department (textbox)
Department toggleitem is set to Division (textbox)
Division toggleitem is set to Company (textbox)

Each group and the textbox for toggle fields have the following expression
for initialtogglestate

=IIF(Parameters!Company.Value="All",False,True)

When entering a single Company all that happens is the toggle icon starts of
as '-' instead of '+' with no expansion.

Can someone point me to documentation on how this should be set up or
explain what I have wrong?

Thanks

[quoted text, click to view]
RE: Using a parameter to control if detail shows initially with dr Antoon
8/10/2005 11:31:31 PM
Did you set the hide parameter to:
=IIF(Parameters!Company.Value="All",False,True) ?


[quoted text, click to view]
RE: Using a parameter to control if detail shows initially with dr J Wood
8/11/2005 5:42:18 AM
Thanks for the reply Antoon,

Yes, Initial Visibility is set to use the same expression. Based on the
posts here asking for the same type of functionality, I thought I had
everything covered, but it still isn't working. I couldn't find anything in
the online docs, but if anyone knows where (if) this is documented that would
be a big help (or suggestions on what else I might need to set).

Thanks

[quoted text, click to view]
RE: Using a parameter to control if detail shows initially with dr Antoon
8/11/2005 6:09:02 AM
I think the exression should be the inverse off the toggle item (its
'initialy hidden' instead off 'intial visibility'). If you click the '-'
you'll probably get the details (?)

[quoted text, click to view]
RE: Using a parameter to control if detail shows initially with dr J Wood
8/11/2005 6:57:03 AM
That was the problem. Thanks for the help

[quoted text, click to view]
AddThis Social Bookmark Button