Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: APPLYING SELECT EXPERT RULES TO SELECTED TEAMS Post Reply Post New Topic
Author Message
andyme
Newbie
Newbie
Avatar

Joined: 19 Feb 2010
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote andyme Replybullet Topic: APPLYING SELECT EXPERT RULES TO SELECTED TEAMS
    Posted: 10 Jun 2010 at 5:20am
Hi All, I have a problem, I have a report that counts and extracts information from 2 teams. The report has 1 tab for each team which displays the teams members IDs.

I need to see all Team 1's ID's
I only need to retrieve Team 2 ID's that only have a certain job description.

I can do it using 2 seperate reports but it I want to make it work a touch of a button.

Is there anyway I can apply a rule to a selected team?

ANY HELP IS HELP AT THE END OF DAY
THANKS.

P.S HELP!!!!!!!
IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 11 Jun 2010 at 5:47am
It might work well for you to extract all your data but suppress the detail records where team = 2 and job description = ones you don't want. 
IP IP Logged
andyme
Newbie
Newbie
Avatar

Joined: 19 Feb 2010
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote andyme Replybullet Posted: 11 Jun 2010 at 7:44am
How exactly would I do that, using a formula or something?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 11 Jun 2010 at 9:10am

Selectively suppressing rows is done in the Section Expert using a formula.  However, if you're doing any summaries (counts, sums, etc.) it doesn't work as well.

To completely filter the records out of your report, do something like the following:
 
1. In the Select Expert, click on the formula button (if there's no selection criteria, you'll have to pick a field first.)
2.  Enter something like this:
 
{myTable.Team} = 'Team 1' OR
({myTable.Team} = 'Team 2' and {myTable.JobTitle} = 'Blah')
 
Note the parentheses (in red) - you have to use them this way in order to get this to work correctly.
 
-Dell
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.032 seconds.