Quantcast
Channel: SCN : All Content - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4716

Passing single/multiple values to stored procedure parameter from crystal report

$
0
0

Hi Friends;

 

 

The same subject was raised by Mr. Vinay (kk mm) on 28 Feb 2012. I followed the same as he has mentioned in the solution to the above mentioned problem.

 

 

He commented as below

Resolution

Here are the steps to pass a multi-value parameter to a stored procedure:

1. Create a Crystal report, and add a multi-value parameter.

2. Since the multi-value parameter is treated as an array, create a formula that uses the JOIN function. Create a formula as below:

//Formula: @JoinFormula

Join ({?Multi-value parameter array},";")

============================================================

NOTE:

In the formula above, a semi-colon (";") is the delimiter.

============================================================

3. Within the main report, create a subreport based on the stored procedure, and include the parameter to be populated with the multi-value list.

4. Link the Join formula in the main report to the stored procedure parameter in the subreport. Doing so passes a multi-value parameter to the stored procedure.

 

 

I followed step 1 and 2 but I am getting an error message "A String array is required here" and I am not able to continue further. I followed the basic that is the parameter which I had created is of String type only.

 

 

I am attaching the code of stored procedure for further analysis.

 

 

Looking forward for a support at the earliest possible.


Viewing all articles
Browse latest Browse all 4716

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>