Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Get all rows
Author
Message
gimomars
Newbie
Joined: 10 Sep 2012
Online Status: Offline
Posts: 2
Topic: Get all rows
Posted: 10 Sep 2012 at 9:47pm
Hi experts,
I need your help, I want to display all rows as 1.
For example in report Details:
ID
5
6
7
8
But instead of row. They should me. 5,6,7,8 in one text object. Here's my formula, but this is not correct. Please help.
Local numberVar oLoop ;
Local numberVar oCount := COUNT({vw_DSPR.Code});
Local stringVar oSerial := "";
For oLoop := 1 To oCount Do
(
oSerial := ToText({vw_DSPR.Serial}) + "," + oNextSerial;
);
oSerial;
Regards,
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 11 Sep 2012 at 4:47am
what I would do is:
in the detail section create a formula like:
shared stringvar all;
all := all + ", " + {table.field};
suppress the detail section,
in the report footer have a formula like:
shared stringvar all;
mid(all, 3) //strips off the leading ", "
HTH
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.