Solved

SSRS:  How to Toggle

Posted on 2013-12-19
7
878 Views
Last Modified: 2013-12-20
Hello:

Attached is a SQL 2008 SSRS report.  Attached is a screenshot of how it appears when I run it.

I want a toggle plus sign to the left of the first dollar figure in the screenshot.  And, when collapsed, I only want one column to show.  When expanded, I want the other columns to show, of course.

How do I make this happen?  Whenever I try to use the toggle feature of SSRS, I seem to always get a cryptic error.  I'm surprised that the process is not as simple as it looks.

Thanks!

TBSupport
toggle.docx
POOR-RCG-PastDue-Detail-Subrepor.rdl
0
Comment
Question by:TBSupport
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:vr6r
ID: 39729826
In your row groups section, right click "(table1_Details_Group)", select Group Properties, Visibility and set the following options:

When the report is initially run: Hide
Display can be toggled by this report item: Checked, and select "PastDue1" from dropdown

I can't really test this without your data source, but that should be all you need to do.  Attached file has these changes made already.
POOR-RCG-PastDue-Detail-Subrepor.rdl
0
 
LVL 1

Author Comment

by:TBSupport
ID: 39729888
That's close.  Attached is a new screenshot.

But, I want it collapsed to where I only see that first dollar figure.  Then, upon hitting the plus sign, I want to see the expanded data (i.e. the other columns).

Thanks, for the quick response!

TBSupport
toggle2.docx
0
 
LVL 8

Expert Comment

by:vr6r
ID: 39730271
Try this one, this should do it by moving the detail rows below the heading total.  SSRS seems to have trouble showing/hiding detail rows if they are on the same row as the parent group, even though the visibility setting is defined that way.  Again, wasn't really able to preview/test - but this should be the most direct way to get what you want.
POOR-RCG-PastDue-Detail-Subrepor.rdl
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 1

Author Comment

by:TBSupport
ID: 39730375
vr6r:

Can you send me instructions of what you did, instead?

Thanks!

TBSupport
0
 
LVL 8

Accepted Solution

by:
vr6r earned 500 total points
ID: 39730447
Sure thing...

Just right click the "[PastDue]" cell (the 2nd column cell, not the sum column) and select "Insert Row" -> "Outside Group - Above"

That brings your detail group 1 row below the parent group, which should eliminate the conflict from hiding/showing groups mixed on a single row.
0
 
LVL 1

Author Comment

by:TBSupport
ID: 39730504
Unfortunately, when I do that, I get what is shown in the attached screenshot.

What am I doing wrong?

TBSupport
toggle3.docx
0
 
LVL 8

Expert Comment

by:vr6r
ID: 39730616
Could you send a screenshot of your design view of the report?
Also, have you tried running the last file that I attached? (just to confirm that it generates the report they way you want)

With these types of edits SSRS is very picky about the layout of the rows.  For example in the steps I mentioned before, selecting "Inside Group - Above" will behave very differently than "Outside Group - Above"
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
In this article I will describe the Detach & Attach 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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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