Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: concatenating data Post Reply Post New Topic
Author Message
bobsn
Newbie
Newbie


Joined: 19 Mar 2007
Online Status: Offline
Posts: 27
Quote bobsn Replybullet Topic: concatenating data
    Posted: 20 Mar 2007 at 1:19pm

Hi all,
Lets say I have a query based on a universe and I know that bringing a particular object from that query into the report would give me 10 rows. I would like to display them in a concatenated form in a single row.
Is there a possibility?
I have tried using join but that requires a string array. It worked with a parameter..

any ideas??

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 20 Mar 2007 at 1:35pm
There was another question just like this last week or so. You might want to search the forum for it. Anyway, create a shared variable and in the detail section have a formula that concatenates them together. Then in the group footer show the concatenated string. 
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
bobsn
Newbie
Newbie


Joined: 19 Mar 2007
Online Status: Offline
Posts: 27
Quote bobsn Replybullet Posted: 21 Mar 2007 at 2:07pm
if the query returns 5 records the formula is showing up 5 times,
eg:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
 
and if i put it in the report footer, it returns only one value... the last one i think.
 
is there any workaround?
 
 
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 21 Mar 2007 at 2:50pm
Somethings not right. Yes, if you put it in the detail section it shows up five times (once for each row). But the footer should show everything. In the formula, are you using "WhilePrintingRecords"? This makes sure the formula gets called for every detail record.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
bobsn
Newbie
Newbie


Joined: 19 Mar 2007
Online Status: Offline
Posts: 27
Quote bobsn Replybullet Posted: 22 Mar 2007 at 1:04pm
I tried it with and without the WhilePrintingRecords function.
I dont see a change in the result.
 
 
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.015 seconds.