SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Conditionally display text in footer based on row in detail


Conditionally display text in footer based on row in detail

Author
Message
rray 44280
rray 44280
SSC-Enthusiastic
SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)SSC-Enthusiastic (148 reputation)

Group: General Forum Members
Points: 148 Visits: 165
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.
sql Sarah
sql Sarah
Old Hand
Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)Old Hand (345 reputation)

Group: General Forum Members
Points: 345 Visits: 591
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search