Solved

Suppress Details Section if Condition

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

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. …
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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