Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select groups that contain a value Post Reply Post New Topic
Author Message
jrhodes
Newbie
Newbie


Joined: 08 Jun 2010
Online Status: Offline
Posts: 9
Quote jrhodes Replybullet Topic: Select groups that contain a value
     Posted: 05 Oct 2010 at 3:43pm
Hi there,

Is it possible to select groups where a group's records contains a certain value?

What I've got is a group of Projects grouped by Project Name. Inside the Project Group is a list (in the details) of who is involved in the project.

I want the user to be able to enter a person code and the report return all the projects containing that person and the other people involved in the project.

I can use the Select Expert to select where a person matches the entered Person Code but it wont include the other people involved in the project.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Oct 2010 at 3:54am
yes you can do group record selectin.
set it up as a param for the worker name
group on project name.
insert a formula to flag your records asm 'flag'
if {?param}=table.name then 1 else 0
insert a summary of this formula as a SUM at the projectname group level
go into the select expert and change the toggle option to 'Group selection'
insert your criteria there:
IP IP Logged
jrhodes
Newbie
Newbie


Joined: 08 Jun 2010
Online Status: Offline
Posts: 9
Quote jrhodes Replybullet Posted: 06 Oct 2010 at 1:31pm
Wow so simple! Thanks.
IP IP Logged
Blackyis
Newbie
Newbie


Joined: 26 May 2011
Online Status: Offline
Posts: 1
Quote Blackyis Replybullet Posted: 26 May 2011 at 3:38pm
Originally posted by DBlank

yes you can do group record selectin.
set it up as a param for the worker name
group on project name.
insert a formula to flag your records asm 'flag'
if {?param}=table.name then 1 else 0
insert a summary of this formula as a SUM at the projectname group level
go into the select expert and change the toggle option to 'Group selection'
insert your criteria there:
Just curious, is there a mistake in that last line? 
 
 
I've been following these instruction but crystal wont let me enter that last line ans whatever I try to do otherwise isn't working?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 31 May 2011 at 4:32am
yes, there is a formatting issue that inserted an errant 0">
is should just be
sum(flag,group_field) > 0
IP IP Logged
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