Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I pass random parameter to Crystal Report ?

Status
Not open for further replies.

krist

Programmer
May 30, 2001
114
ID
Hi All,
I have requirement that I almost think Crystal cannot do :

e.g : I have RPT where parameter is : Customer Code.
I have 10 customer : Cust01, Cust02, Cust03, ..., Cust10.

What If I want to print :
Cust01, Cust05, Cust06, Cust09, Cust10 (chosen by the user)
; this is what I call random parameter.

How can I do this with Crystal ??

Thanks a lot for your help,
Krist
 
When you create your parameter, set it up to allow multiple discrete values, then use the "Set default values" to designate your 10 customer codes.

Mike
 
As far as printing the selected values, use the Crystal 'join' function:
join({?Param_Name}, ', ');
The parameter must be set to allow multiple values - as mbarron said.
 
Hi Mbarron & GMcnamara,
Thanks for the response.

I haven't described all,
Now I'll go to the real condition of my requirement :

(1) Actually its not only 10 Customer, it can be 1000 customer code, or even more, can crystal handle such number of paremeter values ?

(2) I am using PE API from front end application (written in Clarion), is there any method in the PE API to pass such type of parameters ?

Thanks a lot for your help,
Krist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top