Solved

Suppress Details Section if Condition

Posted on 2013-01-30
4
1,557 Views
Last Modified: 2013-01-30
I have a report that contains line items of an order (displayed in the Group Header Section).

Each line item can have 1 to many "releases" (displayed in the Details section). (release field is {OrderRel.OrderRelNum})

I want to suppress the "releases" unless there is more than one release for a given line item.

How can I achieve this?
0
Comment
Question by:mmoore500
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 38836309
I assume this means you want to suppress the detail line, not just the releas number.

Lets say you are grouping on {TableA.FieldX}, then in the Section Expert you use the conditional 'Suppress' button for the detail section with the expression...

Count({OrderRel.OrderRelNum}, {TableA.FieldX})<2

This assumes that the group field FieldX is not a Date field, otherwise the interval also has to be included.
0
 
LVL 2

Author Comment

by:mmoore500
ID: 38836446
Thanks for the help so far. This is my first time using Crystal and the report I'm building is from a template that already established the grouping.

Can you tell me how to find {TableA.FieldX}?
0
 
LVL 2

Author Comment

by:mmoore500
ID: 38836630
I've got it now. You were right, although instead of passing the second argument as {TableA.FieldX} I saw that the group was using a formula @NumericOrderLine.

So my formula to suppress the detail section was:

Count({OrderRel.OrderRelNum},{@NumericOrderLine})<2

Thanks again.
0
 
LVL 2

Author Closing Comment

by:mmoore500
ID: 38836635
It should be noted that the group may not be a {Table.Field} it can also be a formula such as {@formulaName}
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…

710 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