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


Expand All & Collapse All options in a drill down report


Expand All & Collapse All options in a drill down report

Author
Message
nayak.shridevi
nayak.shridevi
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 131
Hi,

I have a report with drill down implemented to 3 levels.

I want to provide options to Expand all items and Collapse All items in this report.

Thanks!Smile
mvee
mvee
SSC Eights!
SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)

Group: General Forum Members
Points: 967 Visits: 449
Basically, the answer is to add a report parameter for expand/collapse.
Then, for each grouping add an IIF statement to make the group visable/hidden based on the report parameter.

I googled this: reporting services collapse all

and got a bunch of results that will probably give you more step by step instructions.

Good luck.
-M



nayak.shridevi
nayak.shridevi
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 131
i have implemented "Expand All and Collapse All options in a drill down" in this manner

included a boolean parameter named "ExpandAllGroups"

and then modified the sub groups as shown below:

For each sub group (except the topmost)
Edit Group --> Grouping and Sorting Properties --> Visibility Tab --> Initial Visibilty --> Expression: =IIf(Parameters!ExpandAllGroups.Value, False, True)

This is working! But the problem is even when a group is expanded the symbol showed is "+" and similarly even if a group is collapsed the symbol "-" is showed.
mvee
mvee
SSC Eights!
SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)

Group: General Forum Members
Points: 967 Visits: 449
sorry, i don't know an easy way to fix that. i think it's an ssrs 'feature'...
if you figure it out, please post.
thanks, m



ezytime
ezytime
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 377
My usual way of doing that is
1. Make a boolean report parameter named "HideDetail". Depending on the user requirements, for some reports I make this a hidden parameter; otherwise I give it a parameter prompt like "Collapse Groups" or "Show Summary".
2. For each table group except the top level, set the Initial Visibility property to =Parameters!HideDetail.Value
3. For the toggle cell of each group, set its InitialToggleState property to =Not Parameters!HideDetail.Value . That sets the plus and minus toggle icons properly when the report is generated.

ezytime
mvee
mvee
SSC Eights!
SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)SSC Eights! (967 reputation)

Group: General Forum Members
Points: 967 Visits: 449
Great idea! Thanks for sharing.



nayak.shridevi
nayak.shridevi
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 131
this solution works!BigGrin

thank you!
Muhammad Haseeb Farhan
Muhammad Haseeb Farhan
SSC Veteran
SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)SSC Veteran (256 reputation)

Group: General Forum Members
Points: 256 Visits: 224
Hi,
Another simple way to do this Smile

1)- write click on level 2 text box (if you want have 2 levels)
2)- Click Edit Group
3- Go to the Visibility tab
4)- Select Initial visibility Hidden
5)- Check "Visibility can be toggled by another report item"
6)- select level 1 item
7)- Click oK
and enjoy
khushboo
khushboo
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 44
My usual way of doing that is
1. Make a boolean report parameter named "HideDetail". Depending on the user requirements, for some reports I make this a hidden parameter; otherwise I give it a parameter prompt like "Collapse Groups" or "Show Summary".
2. For each table group except the top level, set the Initial Visibility property to =Parameters!HideDetail.Value
3. For the toggle cell of each group, set its InitialToggleState property to =Not Parameters!HideDetail.Value . That sets the plus and minus toggle icons properly when the report is generated.

ezytime


Thanks a ton for this solution. It's just perfect!!Smile
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