Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Toggle and Visibility depending on Parent Group value Expand / Collapse
Author
Message
Posted Wednesday, April 30, 2014 8:25 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, September 30, 2014 5:22 AM
Points: 300, Visits: 1,070
Hi,

I have a report where there are collapsible groups IT, Non-IT and Other. I want to remove the collapsible button (+) whenever the Parent is IT and also remove the group header whenever the parent is IT as seen in the attachment.

For other groups I want to display as is .

Thanks,
PSB


  Post Attachments 
Toggle.JPG (3 views, 26.85 KB)
Post #1566423
Posted Wednesday, April 30, 2014 11:25 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 9:09 AM
Points: 10,342, Visits: 13,352
I don't know of a way to remove the "+" when you set a toggle item, but you can use an expression in the hidden property of the items being toggled to have them expanded or collapsed and you can use the same expression in the InititialToggleState of the Toggle Item to have the "+" be a "-". In your example I'd use the expression:

=NOT(Fields.Parent.Value="IT")


So that would expand the items under the IT group and put a "-" next to IT and collapse the items in NON-IT and Other and put a "+" next to Non-IT and Other.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #1566519
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse