Hi,
I am developing a report using CR XI designer and facing a problem with using "IN" operator of crystal. Let me explain with a simple example.
assume the table data is
employee salary
------------------------
emp1 100
emp2 200
emp3 150
Now my simple report has two columns employee and salry and i am trying to apply selection criteria on "employee" field.
i selected "one of" from dropdown and selected two values emp1, emp2. formual is as below.
emp.employee in ["emp1","emp2"]
it is working perfectly fine.
i created a parameter "param1". and changed the selection criteria so that formula will be as below.
emp.employee in [{?param1}]
This time when i refresh in designer it prompted for value and i entered "emp1","emp2". Report is not displayingany output. I also tried put param1 on header, but to my surprise it shows as "emp1","emp2". I am wondering why result is not getting displayed. Am i missing something!!!
appreciate your help in fixing this.
Thanks
Ravi
I am developing a report using CR XI designer and facing a problem with using "IN" operator of crystal. Let me explain with a simple example.
assume the table data is
employee salary
------------------------
emp1 100
emp2 200
emp3 150
Now my simple report has two columns employee and salry and i am trying to apply selection criteria on "employee" field.
i selected "one of" from dropdown and selected two values emp1, emp2. formual is as below.
emp.employee in ["emp1","emp2"]
it is working perfectly fine.
i created a parameter "param1". and changed the selection criteria so that formula will be as below.
emp.employee in [{?param1}]
This time when i refresh in designer it prompted for value and i entered "emp1","emp2". Report is not displayingany output. I also tried put param1 on header, but to my surprise it shows as "emp1","emp2". I am wondering why result is not getting displayed. Am i missing something!!!
appreciate your help in fixing this.
Thanks
Ravi