Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Problem with parameter Post Reply Post New Topic
Author Message
Pinto
Newbie
Newbie
Avatar

Joined: 14 Sep 2007
Location: United Kingdom
Online Status: Offline
Posts: 9
Quote Pinto Replybullet Topic: Problem with parameter
    Posted: 25 Mar 2009 at 3:02am

I have a report based on a view. I have two parameters which work fine and filter my report. I have added a third. The data is on sql server 2005 and the field I want to filter is type numeric. My report is run from in asp.net from a web page. The user selects items in a list and a string is built and to be passed to the report. ie 106,2,02,284,354 In my report I have created a parameter called skill which I have set as string. I want my database field to basicly read

....where QId in ?skill
 
this works
 
{vweShowAnswers.STF_Community} like "*"&{?Community}&"*" and
{vweShowAnswers.STF_Ward} like "*"&{?Ward}&"*" and
{vweShowAnswers.ANS_QId} in ["194"]
 
ths doesn't - I get a conversion error
 
{vweShowAnswers.STF_Community} like "*"&{?Community}&"*" and
{vweShowAnswers.STF_Ward} like "*"&{?Ward}&"*" and
{vweShowAnswers.ANS_QId} in [{?skill}]
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 25 Mar 2009 at 6:23am
since skill is a string, I would have tried: instr({?skill},{vweShowAnswers.ANS_QId}) > 0
IP IP Logged
Pinto
Newbie
Newbie
Avatar

Joined: 14 Sep 2007
Location: United Kingdom
Online Status: Offline
Posts: 9
Quote Pinto Replybullet Posted: 25 Mar 2009 at 7:35am
Thanks you - I got it working now manually entering the data - I just have to get it working by passing the value of ?skill to the CR when I call it from my webpage.Smile
 
Yes -all ok - thank you


Edited by Pinto - 25 Mar 2009 at 8:01am
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.