Solved

Suppress Details Section if Condition

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

16 Experts available now in Live!

Get 1:1 Help Now