Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Combine a multi-record to a single record Post Reply Post New Topic
Author Message
hackera40
Newbie
Newbie
Avatar

Joined: 22 Mar 2011
Online Status: Offline
Posts: 9
Quote hackera40 Replybullet Topic: Combine a multi-record to a single record
    Posted: 18 Apr 2011 at 7:40am
I created a report that I though was awesome only to find out it wasn't. LOL  My boss would like to see a multi-record layout moved to a single record layout.  Can this even be done in Crystal?  Here is the scenerio:
 
Existing report:
 
Record #          Water Temp         Location
1234                     HOT                 Bathroom
1234                     WARM              Bathroom
1234                     COLD               Bathroom
 
Proposed report:
 
Record  #      Water Temp1      Water Temp2    Water Temp3      Location
1234                      HOT                    WARM              COLD            Bathroom
 
End of report.
 
So basically, he wants to see a single record number with the variable field data.
 
Is this at all possible in CR?
 
Thanks,
Al
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 18 Apr 2011 at 7:57am
well, yes and no.
 
If you are joining straight to the tables in the database, the best that I can think of is to bring a comma delimited or tab delimited string of the various fields.  This would be done by appending the field desired into a shared stringvar that would be displayed in the group footer (the detail would be suppressed)
 
You might be able to do it with self joins, but that doesn't fun at all.
 
The last option is to use stored procs to create the data table that you want.  If the number of fields that will be displayed across the report is unknown or limitless, this is not an option as the format of the datatable must be known before hand or CR will not be happy and the report will not work...which kind of leads us back to the first option, since a field can be set to can grow, but it is all up how the data lays out and what is acceptable in the final report.
 
HTH
IP IP Logged
hackera40
Newbie
Newbie
Avatar

Joined: 22 Mar 2011
Online Status: Offline
Posts: 9
Quote hackera40 Replybullet Posted: 18 Apr 2011 at 11:30am
Soooo .... apparently from what I am reading, it can be done but not easily?  Multi-value fields are not easily transformed into unique record listings on a CR report?
 
However, I want to thank you for taking the time to answer this question.  I will have to mull over your answer and see if I can incorporate it into my CR report.  Confused
 
Al
 
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.