Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Parameter with Multiple Values Post Reply Post New Topic
Author Message
bing
Newbie
Newbie


Joined: 25 Aug 2014
Location: Philippines
Online Status: Offline
Posts: 5
Quote bing Replybullet Topic: Parameter with Multiple Values
    Posted: 28 Aug 2014 at 3:18am
Hi,

I like to prompt a parameter in Crystal Report that will accept multiple values from a Stored Procedure.

I use Stored procedure and table-valued function, but Crystal Report only accepts 1 value.

Any help please.
Bing
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 29 Aug 2014 at 6:27am
crystal will only send 1 of the multiple values...the first array item. The way around this is to have the user comma delimit the multiple values and then have the stored proc decode them.
IP IP Logged
bing
Newbie
Newbie


Joined: 25 Aug 2014
Location: Philippines
Online Status: Offline
Posts: 5
Quote bing Replybullet Posted: 03 Sep 2014 at 5:28pm
Please give me a reference website where I can find some samples of this. thanks.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 04 Sep 2014 at 5:04am
I don't really know of any sites...just what I have done.

I wrote a general function to take a delimited string and return a table. I could then use the table in joins to filter out the data that I wanted.

there are several methods to accomplish this, while loops, tally tables are probably the top 2 methods.

HTH
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.031 seconds.