Print Page | Close Window

Trying to supress details

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=9535
Printed Date: 04 May 2024 at 11:03am


Topic: Trying to supress details
Posted By: gguthrie
Subject: Trying to supress details
Date Posted: 29 Mar 2010 at 11:29pm
Hi,
 
I run in Details A with information on open or closed reports, and I show in Details B the report # if it is equal to "Open" or "In Process", so I created a formula and it is the only item in Details.
 
If {command.Status} = "Open" or {command.Status} = "In Process"
Then {command.JobID}
 
So this shows the report # (command.JobID) if it is "Open" or "In Process", but it shows a 0 if is is not "Open" or "In Process". Is there anyway for it to not return anything so I don't have rows of 0's? Else NULL does not work.
 
So what I tried to do was go into the formula editor for Surpress, and use:
 
IsNull({command.JobID}) or {command.JobID}=0
 
but this is not surpressing Details as I still get a 0 for a row.
 
Can anyone help me to not show a 0 on a row?
 
thanks
 
EDIT:
The simple way of saying this is I have two details sections A and B, A has all open and closed info, but I just want 'open' info to show up in deatails B.
 
How can I do that?
 
thanks! 
 
 



Replies:
Posted By: jkwrpc
Date Posted: 01 Apr 2010 at 9:21am
I may be missing something but in the Section Expert for Details B why not use
 
{command.Status} <> "Open"
 
That should suppress anything not equal to an "Open" status
 
Hope this helps.
 
Regards,
 
John W.
http://www.CustomReportWriters.net - www.CustomReportWriters.net


Posted By: hilfy
Date Posted: 02 Apr 2010 at 4:52am
Go to the Section Expert.  Check the "Suppress" checkbox.  Click on the button to the right of the checkbox and enter:
{command.Status} = "Open" or {command.Status} = "In Process"
 
This should suppress the entire section if the status is not Open or In Process.  If by chance it suppresses the section for the other statuses instead of Open or In Process, try unchecking the Suppress checkbox.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: gguthrie
Date Posted: 04 Apr 2010 at 4:12am
Thank you both, that worked!
 
I don't know why I was trying to modify the fields rather than the section, but that's why I needed help, as I wasn't seeing it.
 
Thanks!!!!!



Print Page | Close Window