Solved

Suppress Details Section if Condition

Posted on 2013-01-30
4
1,405 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
  • 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now