Talk with the Author
 Crystal Reports Forum : General Information : Talk with the Author
Message Icon Topic: Multi values thru Parameter to a Stored Procedure Post Reply Post New Topic
Author Message
dapowande
Newbie
Newbie


Joined: 19 Sep 2008
Location: United States
Online Status: Offline
Posts: 1
Quote dapowande Replybullet Topic: Multi values thru Parameter to a Stored Procedure
    Posted: 19 Sep 2008 at 6:39am
Brian:
 
I am struggling with passing multi values thru parameter to a stored procedure.
 
Passing single value works fine but when multiple values are sent, the sql query shows NULL instead of having the values as comma separated.
 
I'll really appreciate your input on this.
 
Regards,
Oladapo
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Sep 2008 at 2:17pm
This is because CR doesn't support passing multi-value parameters to the stored procedure. Sorry.
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: 23 Sep 2008 at 2:43pm

The way around this is to use a .NET/Java interface to prompt the user for the parameter values and then pass them to the stored procedure via your programming application.

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
twinkle
Newbie
Newbie
Avatar

Joined: 16 Jun 2008
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote twinkle Replybullet Posted: 24 Sep 2008 at 1:15am
Hello,
 
I have a similar issue, where i have set up my parameter to be a multi select. so i would like to know what happens if a user selects different values whilst holding the ctrl key down - do i need to put some formula to handle this?
 
thanks
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Sep 2008 at 9:47am
What are you doing with this multi-value parameter? If you're just using it in your report, then you are okay. If you are also trying to pass it to a SQL stored procedure, then it won't work b/c Crystal doesn't support this.
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
twinkle
Newbie
Newbie
Avatar

Joined: 16 Jun 2008
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote twinkle Replybullet Posted: 25 Sep 2008 at 2:57am
Hi,
 
i am using this report within a database ...
 
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.