I am new to Crystal Reports. I am using CRXI with a SQL2000 database.
I am creating a report using a stored procedure as the data source. One of the parameters is a comma-delimited list of customer IDs. In the customer table, there are fields for customer ID, customer code, and customer name.
The stored procedure needs a list of the customer IDs but these mean nothing to the user. The user needs to see the customer code and the customer name. I have created a dynamic parameter using the customer code as the value and the customer name as the description and have set the "allow multiple values" to true. How can I turn the multiple customer codes into a comma-delimited string of customer Ids and send it to the stored procedure?
I have seen several comments about using a sub-report. Currently, I am trying to create a new report that uses the original report as a sub-report. I was thinking that I could have the main report get the parameters, change them to comma-delimited strings and pass them to the sub-report. The problem that I am encountering with that idea is that I am using the customer table as the data source but I cannot figure out how to write a formula to loop through the customer codes and get the corresponding customer IDs.
Any Ideas would be greatly appreciated.
I am creating a report using a stored procedure as the data source. One of the parameters is a comma-delimited list of customer IDs. In the customer table, there are fields for customer ID, customer code, and customer name.
The stored procedure needs a list of the customer IDs but these mean nothing to the user. The user needs to see the customer code and the customer name. I have created a dynamic parameter using the customer code as the value and the customer name as the description and have set the "allow multiple values" to true. How can I turn the multiple customer codes into a comma-delimited string of customer Ids and send it to the stored procedure?
I have seen several comments about using a sub-report. Currently, I am trying to create a new report that uses the original report as a sub-report. I was thinking that I could have the main report get the parameters, change them to comma-delimited strings and pass them to the sub-report. The problem that I am encountering with that idea is that I am using the customer table as the data source but I cannot figure out how to write a formula to loop through the customer codes and get the corresponding customer IDs.
Any Ideas would be greatly appreciated.