Solved

Hiding and toggling of items based on condition in SSRS

Posted on 2012-03-12
2
2,164 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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