Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Reporting one thing out of a multiline table Post Reply Post New Topic
Author Message
bets
Newbie
Newbie
Avatar

Joined: 05 May 2011
Location: United States
Online Status: Offline
Posts: 8
Quote bets Replybullet Topic: Reporting one thing out of a multiline table
    Posted: 21 Mar 2012 at 3:14am
Alright, so here's the problem and for the life of me I can't figure it out:

Task: Creating a report that lists all of our medically disabled employees. Must be a single line report (i.e. can not group and then list underneath).

Problem:
Some employees have more than one disability. This causes them to appear multiple times on the single-line report.

This is the table inside of my program that I am pulling from. This table is for a single employee. Notice how more than one disability is listed: http://i44.tinypic.com/906kao.jpg

This is the results of my report when I run it in Crystal: http://i39.tinypic.com/24wa3xs.jpg

Somehow, I need to figure out a way to only show the first disability an employee has listed on their table. Like in employee 0077's case, I only want to see disability D02... not D04 and D05 too.

I DID find a solution to this by way of Section Expert > Suppress (No Drill-Down) > previous({hrpersnl.p_empno})={hrpersnl.p_empno}. But I can not use this formula because it causes my first employee to be suppressed for some reason.

Help please?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Mar 2012 at 4:00am
a numebr of ways to handle this. partially depnds on what else you need to do in the report. If this is the first step of a report that has other functionality you may need tolist what that is as well.
group on employee, place the employee name on the group header, suppress detail and group footer section. If you alos palce the disabling code on the group header it will list the first one only.
 
another way
right click on the name field
select format field
common tab
suppress if duplicated
select detail section
mark it suppress if blank
remove the disbaling code from the detail section
 
 
place
IP IP Logged
bets
Newbie
Newbie
Avatar

Joined: 05 May 2011
Location: United States
Online Status: Offline
Posts: 8
Quote bets Replybullet Posted: 22 Mar 2012 at 6:26am
I mean this in a strictly platonic way... but, I love you.

I don't know what I was thinking. It's been a rough week. Thanks for digging me out of my rut. Smile
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.016 seconds.