Reporting Services incorrect icon on show/hide group - reporting-services

I have created a parameter on a report that allows the user to open all the group details or hide group details when the report is run.
This works, but when you run the report and select to expand the groups, the little icon use use to show/hide on the report is a + symbol instead of a - one.
While the actual report is right, i can see it confusing the users somewhat as it looks like there is something hidden, when in fact its all there -
alt text http://www.beakersoft.co.uk/img/report_icons.gif
Any one seen this or know how to fix it?

This problem (wrong display of plus-minus tiny toggle icon) occurs when you want to initially set the Visibility as Show, in the Group Properties (bottom left pane, Row Groups, right click). The solution is to:
Click the text box where the toggle icon should appear
At the property pane, near the bottom, under the Visibility, set InitialToggleState to True

You can set the initial appearance of the toggle icon for the textbox properties (The textbox that controls the visibility of a row/group). You can find this setting under the Visibility tab of the textbox properties dialog box. Use an expression to determine the initial appearance of the icon for different toggle items.
See this short article for more info:

I was facing the same issue.
To resolve this issue Make InitialToggleState property of text box on which display is toggled conditional.
Like this
=iif(Parameters!DrillDown.Value,true,false)
And my show or hide is based on expression
=iif(Parameters!DrillDown.Value,false,true)

Related

SSRS 2008 Removing white space when hiding elements

I have been trying to resolve this simple issue for a few hours with no joy.
I have two tables within my SSRS 2008 report which are bound to different datasets and I need to show or hide the appropriate table based on a passed in parameter. This I have done with the hidden property of the table which works as expected. The problem I have is that when hiding the top item and showing the item beneath it I get the white space from the hidden item.
Trivial example
I created two tables and bound them to the same datasource laying them vertically.
I then set the hidden property of the top table to true and previewed the report.
You can see that the first grid is hidden but the white space remains. From my investigations I did see the ConsumeContainerWhitespace property used for this but in my case it did not clear up the white space.
Question
Is there a method of removing the white space for these hidden elements?
I would recommend two solutions depending on whether the datasets are the same.
1: If they share a common dataset then I would nestle them in another table that has 1 column, and 2 rows, and then change the row visibility depending on the parameters.
2: If the datasets are different, I would make each table a sub-report and then change the visibility that way.
Just another workaround caused by SSRS quirks!
This can be fixed by ensuring that the reports ConsumeContainerWhiteSpace property is set to true.
This can be found in the report properties. Click the yellow surround for the report, press F4 to open the Properties pane, and you can find ConsumeContainerWhiteSpace under there.
See also ConsumeContainerWhitespace property to remove blank space in SSRS 2008 report
The behavior can be controlled by following method
1) Right click on the top left box on the tablix and click on 'Tablix Properties' to open the properties for the tablix
2) Click on the "Visibilty" tab on the left hand side of the wizard
3) Click on the "Show or hide based on an expression", click on the Fx and paste the following formula
=IIF(RowNumber("DatasetName")=0,TRUE,FALSE)
4) Make sure to replace the "DatasetName" with the your dataset name (the one that is related to the tablix)
5) Also make sure that the ConsumeContainerWhiteSpace property is set to "True"
ConsumeContainerWhiteSpace property is a report level property and can be changed from properties window for the report. (click on the report outside of the design area)
This worked for me very well.
Select the object, go to properties and set the size to 0,0
Wired. Only contained them in another tablix or subreport then it works in hide them with no white space.

Display a Tablix on click of Image in ssrs.

We have one requirement in SSRS where we need to display the tablix on click of the Image. By default tablix will be hidden, when user clicks on the Image then we need to show the hidden tablix. Kindly suggest some solution if any. Thanks.
You can toggle the visibility of an object. Initially have the visibility property set to hidden, then use the toggleitem property to accomplish what you are looking for. Instructions are below
To hide static rows in a table, matrix, or list:
In report design view, click the table, matrix, or list to display
the row and column handles.
Right-click the row handle, and then click Row Visibility. The Row Visibility dialog box opens.
To set the visibility, follow steps 3 and 4 in the first procedure.
To hide static columns in a table, matrix, or list
In Design view, select the table, matrix, or list to display the row and column handles.
Right-click the column handle, and then click Column Visibility.
In the Column Visibility dialog box, follow steps 3 and 4 in the first procedure.
Then use the ToggleItem property of the table. Select the table, locate the property in the Properties window and specify the name of the textbox. If you now render the report you'll notice a little + icon in front of the testingBox content.
To find out what your textbox is called first select that and look at the bold part in top of the Properties window. To change it you can use the Name property. It's advisable to give it a clear name so you can easily locate it.

Toggle table visibility w/ click

I have a ssrs simple table with a text box above it.
I want to add an image with an expand collapse option, and initially when the report is show hide the table, and when the image is clicked show and continue to toggle everytime it is clicked.
For example:
Initially:
After Click:
The image name is expand_collapse, the table name is error_table. I know I need to right an expression for the visibility properties of error_table, I have not found anything with a click.
You can do it by checking the toggle display box:
Set the name of the text box containing your Error(8) statistics from the dropdown.
This creates a little +/- box that looks like this when collapsed:
And like this: when uncollapsed.
The "When the report is initially run" option sets the state when the report is first run, so if you want it to be collapse to start, select "Hide" as I've done above.

SSRS Hiding the textbox in a table cell causes the borders to disappear

I have a report with a table in it. And each table cell has borders around it.
The problem I'm experiencing is that if I hide the textbox in any of the cells, the borders also disappear.
I want the textbox to hide but still show the borders.
The textbox in question shows the visibility toggle icons (+/-) so I can't use an iif statement to change the textbox's value to be an empty string when I don't want to see anything in it.
You can place the textbox inside a rectangle.
***So , I was having this same issue:* **
The Problem:
I assume that you placed a border around your text box and decided to place the hide and toggle element to your text box. or your Rows are not stepped down. Two solutions, I think the first solution is what you are looking for:
Solution 1:
I Noticed that SRSS reporting also has this grouping feature by rows. So to hide the text in the textbox without losing borders is to create a step-down feature within the grouping. So basically you can assign hide text box property without disturbing the rows above the textbox. This may be a better solution.
Solution 2:
You must instead place the border attribute to your text box and place the hide and toggle function on the individual groups. So for you, you have to remove the hide + toggle feature on the textbox. Right click the group element in your "rows" or "columns" and assign your drilldown hide + toggle feature on the group elements. In other words: "group properties" not "text box properties"
I hope this re-solve your issue.
I ran into the same issue. I solved it by changing the text color to white (or whatever the background color of the textbox is). I was doing this inside a table, and couldn't find a way to insert a textbox inside of a rectangle as stated in the other answer...
I had similar problem and used similar approach like #Anony Mous, but instead of changing text color to background color I used expression to change text value =IIF(InScope("RowGroup") = "True", Fields!Textboxvalue.Value, "") - and it works as expected.
Problem with background color change is that, if user unintendely select the text and makes it active, it become visible.
Just select the Textbox in question, run F4 (to access to the properties chart at the right side of VS or SQL), select the HideDuplicates dropdown and Select the Data Set that you are using :)

SSRS 2008 TextBox Borders Apply to single textbox

I am having a problem placing a border around a single TextBox. For some reason when I put a border around it, SSRS Applies the border to plenty of other TextBoxes in the same area.
I have a TextBox that is part of a Group That is part of Tablix. I am doing the following
Right clicking the TextBox
Clicking TextBox Properties
Clicking Border
Clicking the outline preset / manually clicking each border in the preview.
Clicking OK.
After I do this, the border style is applied to any TextBox this TextBox I right clicked on touches.
I thought it might have something to do with the TextBox being in the group, so as an experiment, I got rid of the borders and set just the back color. That worked as expected. - Just the single TextBox had the back color.
This doesn't make any sense. Why aren't borders being applied to the single TextBox?
Today, during my search I saw your question as I was having the same problem.
I solved this problem for myself and now I am submitting an answer here so that others can use it.
Follow these steps:
Click on TextBox to which you have to give boarder.
Then, go to the Property Sheet which is on the right side of your IDE window. It will show all properties of the selected textbox.
Change Border property value in the Property Sheet
Now, you will see that the Border value(s) you specified in the Property Sheet has been applied only to the selected textbox, not to other text boxes.
Hope it will work for others just like it worked for me.