Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Suppressing visibility on a sub report based on content of sub report Expand / Collapse
Posted Saturday, August 16, 2014 8:14 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, November 9, 2015 9:23 AM
Points: 30, Visits: 110
Hi, I've got a 2012 report (using Visual Studio 2010) written for Dynamics CRM 2011. Main report contains organisation (account) and contact data, then there a bunch of sub reports containing information from various customised entities, but where the status of the data in the customised entity is Active. All well and good, but when I run the report, if the sub report is empty, there is a blank space on the main report. I've tried including a left join on the main report to each entity the SR uses, then adding the Status for each to the main report, and hiding row visibility on the sub report where status <> active which worked. But as soon as I started adding test data to each of the entities, making active records deactive (which continued to work), then creating new active records - the new data did not appear in the main report. I guess if I have multiple rows returned in the main report where the first row (eg committee status) for a record is not active, even though the next one may be active, it takes the first result and continues to suppress visibility of the data. I have put a count on the sub report but is it possibe to reference this count in the main report where I want to suppress row visibility based on count <1? Or even another way to suppress visibility of a sub report? Sorry for the long explanation, hope it's clear and someone out there can help an SSRS newbie!
Thanks in advance
Post #1604090
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse