Solved

Hiding and toggling of items based on condition in SSRS

Posted on 2012-03-12
2
2,088 Views
Last Modified: 2012-03-14
I am building a report with parameters and drill downs. Based on parameters, report may return tons of data or few rows of data. Therefore based on parameters I want to display report with / without drill downs.

First I thought of putting an expression in Hide property, which works. But toggle item property does not support expressions... so the rows are made visible but they still have toggles which forces user to click through to see just 1 row.

I am out of ideas, and would appreciate any help. Thanks !
0
Comment
Question by:pratz09
2 Comments
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 37713450
I'm not exactly sure what you mean with: "so the rows are made visible but they still have toggles which forces user to click through to see just 1 row"

As you've noticed, you can't change the ToggleItem value dynamically,  but I don't think that's necessary.  If you use an expression on the Hidden property and make rows "not hidden" whenever you require them to be visible, that should work.

However, what can be confusing is the behavior of the +/- toggle icon.  You will need to make it behave as expected too, by adding an expression on the InitialToggleState property.
Perhaps that's what you were having trouble with?
0
 

Author Closing Comment

by:pratz09
ID: 37723196
Yes you are right. I had to change Initial toggle property of textbox to get the desired effect. Thanks a lot.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now