Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Concatenate multiple rows Post Reply Post New Topic
Author Message
tanu
Newbie
Newbie
Avatar

Joined: 19 Jun 2011
Online Status: Offline
Posts: 10
Quote tanu Replybullet Topic: Concatenate multiple rows
     Posted: 28 Jun 2011 at 11:30am
Hi,

Can you please tell me how to concatenate multiple row colums into one??
My Report consists of several tables joined by their User Id.....so i have to link all of them with left outer join.


For Example,

Users.UserID    Info.Mobile Company.M0dels
1                 Samsung           1
1                 Nokia             2
2                 Nokia             3
2                 LG               4

changes into

Users.UserID      Info.Mobile          Company.Models
1                  Samsung,Nokia          1,2
2                  Nokia,LG               3,4

Here, Users, Info & Company are different tables left joined to Users..

Please help mee...asap   

Edited by tanu - 28 Jun 2011 at 11:33am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 30 Jun 2011 at 3:24am
shared variables
in the group header reset
shared stringvar x1 :="";
shared stringvar x2 :="";
"" //hides everything
 
in details, increment
shared stringvar x1 ;
shared stringvar x2 ;
x1:=x1 + {Info.Mobile};
x2:=x2 + {Company.Models};
"" //hides everything
 
group footer display, 2 formulas
1st:
shared stringvar x1 ;
x1;
 
2nd:
shared stringvar x2 ;
x2
 
 
HTH
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