Talk with the Author
 Crystal Reports Forum : General Information : Talk with the Author
Message Icon Topic: Storing Table IDs in an Array? Post Reply Post New Topic
Author Message
Sven
Newbie
Newbie


Joined: 28 Mar 2008
Online Status: Offline
Posts: 12
Quote Sven Replybullet Topic: Storing Table IDs in an Array?
    Posted: 24 Apr 2008 at 7:20am
Hello
 
I am trying set up a report which contains several rows of the same table.
 
Then, I would like to show a summary of all used records. Like
 
This report includes data from "ID row1", "ID row2", "ID row 3".
 
The values can not be in an column. They have to be (unfortunately) in a row. Idea are very welcome Smile
 
Keep trying :)
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Apr 2008 at 5:19pm
This isn't too tough of a task. Rather than use an array, I would use a string and concatenate each new value to the end of it.
Global StringVar IdList;
IF IdList == "" Then
    IdList := {table.IdField}
Else
    IdList := IdList + ", " + {table.IdField};

I cover all the Crystal Reports built in functions and give code examples like this in Chapter 6 of my Encyclopedia book. You can find out more about my books at Amazon.com or reading the Crystal Reports eBooks online.
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
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Apr 2008 at 5:20pm
Oh yeah - then create a formula which returns this string and put it in the group footer (or report footer if you don't use groups).
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
Sven
Newbie
Newbie


Joined: 28 Mar 2008
Online Status: Offline
Posts: 12
Quote Sven Replybullet Posted: 28 Apr 2008 at 1:38am

It is working! Thanks very much :-)

Keep trying :)
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 28 Apr 2008 at 10:22am
Great!
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
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.