Solved

Suppress Details Section if Condition

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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