Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Grouping by Text formula Post Reply Post New Topic
Author Message
tomahames0604
Newbie
Newbie


Joined: 23 Jan 2013
Online Status: Offline
Posts: 2
Quote tomahames0604 Replybullet Topic: Grouping by Text formula
    Posted: 23 Jan 2013 at 4:20am
Hi Everyone

I need your help...

I have a report that passes data to a subreport which in turn passes back data to the main report. In the main report I have a formula called "Attention"

Attention Formula

if {@Dec Marker} = "ATT" then totext ("ATTENTION PHILLIP")

What I want to do is to group by this field so all the "Attention Phillip" are together because at the moment they are spread out throughout 8 pages.

Can this be done?

Thanks
Tom Hames
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Jan 2013 at 5:46am
It depends.
If the formula @Dec Marker is based on information from the subreport, then no you can't.  Grouping is done prior to the subreport being run.
 
If on the other hand, the value is based on one or more columns that already exist in the main reports datatables, then yes you can group on the formula.
IP IP Logged
tomahames0604
Newbie
Newbie


Joined: 23 Jan 2013
Online Status: Offline
Posts: 2
Quote tomahames0604 Replybullet Posted: 23 Jan 2013 at 11:19am
Thank you, unfortunately the formula is based on information from the subreport. The one thing that I find so annoying is if I want to suppress the details that are not relevant, huge gaps are left in the report, because it will still pass details over. Annoying that you can't suppress a subreport. Does anyone know?
Tom Hames
IP IP Logged
aharonmc
Newbie
Newbie


Joined: 02 Apr 2012
Location: United States
Online Status: Offline
Posts: 10
Quote aharonmc Replybullet Posted: 24 Jan 2013 at 8:01am
You have to suppress all sections in the subreport,
format the subreport to 'Suppress Blank Subreport' on the Subreport tab,
remove the borders,
and format the section on the main report to "suppress blank section".
 
This will make the section disppear if the subreport is blank.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.