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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to allow mulitple fields in dynamic parameter

Status
Not open for further replies.

Oglesbay

Instructor
May 5, 2006
71
US
I am using Crystal XI and am trying to create a report with two dynamic parameters. The first parameter is to select the correct office and then the second parameter is to select the department within the office. I would like the ability to select multiple departments or select all of them. I have set the "Allow Multiple Values" to True for the second parameter, however when I select multiple departments the report only shows the last department that is on the list. Am I doing something wrong? Please help!
 
Right now it is this:

{class.xstartdate}in{?Start Date}to{?End Date} and
{person.dept} = {?My Parameter - dept} and
{person.loc} in [{?My Parameter - loc}] and
{event.xstatus} = "F
 
Don't think you need to use in for your location param.

Try

{class.xstartdate}in{?Start Date}to{?End Date} and
{person.dept} = {?My Parameter - dept} and
{person.loc} ={?My Parameter - loc} and
{event.xstatus} = "F"

Ian
 
Nope, that didn't work. I think it had the "in" because I was trying different things and the last thing I did was set the parameter to "One of" instead of "Exactly." Obviously that didn't work either.

Any other ideas?
 
I think I figured out what it was doing...

Because each of our departments start with a number, the program is looking at the selected parameters and is finding the smallest number first and then going numerically from there. I happen to have the smallest numbered department last, which is why it was only showing the last department in the list.

If I started over and put the list in numerical order then I get every department. So at this point I think I can concider this point closed. Thanks for everyone's help and I guess the learning point to take away is to make sure your list is in numerical/alphabetical order!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top