Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Conditionally display text in footer based on row in detail Expand / Collapse
Author
Message
Posted Monday, August 11, 2014 5:29 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, October 14, 2014 1:01 PM
Points: 46, Visits: 154
My users want me to edit an existing report to condition display text in the footer of a report based on what items are listed in the detail section. The report is a confirmation letter and they want to give the customer more information on specific products or services if that product or service is on the order. There could be dozens of different products that have such additional info, but only a few of them would be on any single order.

Any suggestions on how to do that? I can think of a few ways, but I hoped there might be a standard approach that would avoid 'gotchas'.

I have considered just adding a subreport for each piece of additional info. That might make it easier to edit and manage content, and I know I can hide or display subreports, although not how to do it based on a specific value from the rows in the detail.
Post #1602114
Posted Friday, August 15, 2014 10:26 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 9:09 AM
Points: 42, Visits: 300
rray 44280 (8/11/2014)
My users want me to edit an existing report to condition display text in the footer of a report based on what items are listed in the detail section. The report is a confirmation letter and they want to give the customer more information on specific products or services if that product or service is on the order. There could be dozens of different products that have such additional info, but only a few of them would be on any single order.

Any suggestions on how to do that? I can think of a few ways, but I hoped there might be a standard approach that would avoid 'gotchas'.

I have considered just adding a subreport for each piece of additional info. That might make it easier to edit and manage content, and I know I can hide or display subreports, although not how to do it based on a specific value from the rows in the detail.


I would add a footer row at the bottom of the table. Put the fields or information you want to show in that row. Then right click on the row, choose Row Visibility, and Show or hide based on an expression. Then click the fx button to create the expression.
Post #1603775
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse