Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4054820
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:37:26+00:00 2026-05-20T14:37:26+00:00

I am having troubles passing multiple parameter to the crystal report stored procedure. I

  • 0

I am having troubles passing multiple parameter to the crystal report stored procedure. I have a stored procedure which works fine as long as ?StockNumber parameter is single value.
When I try to change it to multivalue 2 things happen: whether it shows a message: “This stored procedures cannot accept multiple values”. or if try to directly enable parameter in procedure to accept multiple values it just closes an application without any errors.
As far as I understand this is a limitation of stored procedures, not crystal reports.
Anyways I need to fix this. I just do not know how to manipulate parameters in crystal reports environment. please discuss. Thanks!

   SELECT 
      "table1"."StockNum"
      , "table1"."StockOnhand"
      , "table1"."StockNumber"
      , "table1"."StockLocation"
      ,"table2"."StockDesc"
      ,"table2"."StockDesc2"
      , "TotalSoldItems"."SoldItems"
    FROM   
      "AAG1"."DB2"."table1" "table1"
    LEFT JOIN
    (
    SELECT 
      SUM ("StockNumAA"."StockNumQuantity") "SoldItems"
      , "StockNumAA"."from"
    FROM    
      "AAG1"."DB2"."StockNumAA" "StockNumAA"
    WHERE  "StockNumAA"."code"='BB' 
      AND "StockNumAA"."StockNumber" = '{?3PartNumber}'
      AND ("StockNumAA"."date">={?1StartDate}
      AND "StockNumAA"."date"<={?2EndDate})
    GROUP BY 
       "StockNumAA"."from"
     ) "TotalSoldItems"
    ON "table1"."StockLocation" = "TotalSoldItems"."from"
    LEFT JOIN 
    "AAG1"."DB2"."table2" "table2"
    ON "table1"."StockNumber" = "table2"."Stocknumber"
    WHERE "table1"."StockNumber" = '{?Stocknumber}'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:37:27+00:00Added an answer on May 20, 2026 at 2:37 pm

    I am no crystal reports expert but generally when trying to pass a multi value to a stored procedure in SQL the accepted method is to pass it as a comma delimited string like such

     item1, item 2, item 3
    

    Then you just write a function that can split them by the comma and return a set.

    Edit: Again, I know nothing about crystal reports but I did a little research and found the excerpt from another forum. It discusses how to use a multi indentifier as a comma delimited string:

    If your multi-value parameter is of
    type string, you can put this in the
    formula definition of the flattened
    parameter

    {flattened_parameter}: 
    Join({?YourMultiValueParameter},",") 
    e.g. {?YourMultiValueParameter}[1] = US 
    {?YourMultiValueParameter}[2] = Canada 
    {?YourMultiValueParameter}[3] = UK 
    => {flattened_parameter} = US, Canada, UK 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some troubles passing a reference to an object which is of
I am having dependency troubles. I have two classes: Graphic and Image . Each
I'm having trouble passing a POSIXct stored in a variable as the xmin/xmax for
I'm having troubles with HttpWebRequest/HttpWebResponse and cookies/CookieContainer/CookieCollection. The thing is, if the web server
I am having troubles migrating from OC4J 10.1.2.3 to 10.1.3.1.4. The problem is for
For some reason I am having troubles with a DBI handle. Basically what happened
Kind of a basic question but I'm having troubles thinking of a solution so
I'm trying to setup some caching on my site and am having troubles with
I'm building my first ASP.NET MVC application and I am having some troubles with
I'm a rookie designer having a few troubles with this page: http://www.resolvegroup.co.nz/javasurvey.php There are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.