I am on CR 8.5, WIN 2k, Active x viewer, JSP environment.
I am facing problems to display data with multi value parameters.
I have reports with parameters location and patients.
I am running it from a JSP page and it is parameter driven.
Initially our only options from web page were either display one or all, means either one location or all locations, and one patient or all patients.
Now we changed our UI and user gets a pick list to choose from. The list is predefined and has all the possible selections of locations or patients they can choose.
Initially my code in selection formula was:
// we used ‘0’ for all option.
(
if {?Location} = '0' then
{table.Location} = {table.Location}
else
{table.Location} = {?Location}
)
and
(
if {?Patientnumber} = '0' then
{table.Patientnumber} = {table.Patientnumber}
else
{table.Patientnumber } = {?Patientnumber}
)
Now my questions is how could I handle multi values parameters in my report.
For example, if user pick five patientnumber 234, 345, 456, 546, 456 and three location base1, base2, base3 then how I am I going to retrieve these parameters in my report and query my selection formula.
Please inform me how could i pass multi value fields in crystal reports.
Please tell me is it possible in CR 8.5 or not.
I have used :
(
if {?Patientnumber} = '0' then
{table.Patientnumber} in {table.Patientnumber}
else
{table.Patientnumber } = {?Patientnumber}
)
and it worked fine with number, but string is not working in that formula.
Please inform me with any logic.
Thanks
I am facing problems to display data with multi value parameters.
I have reports with parameters location and patients.
I am running it from a JSP page and it is parameter driven.
Initially our only options from web page were either display one or all, means either one location or all locations, and one patient or all patients.
Now we changed our UI and user gets a pick list to choose from. The list is predefined and has all the possible selections of locations or patients they can choose.
Initially my code in selection formula was:
// we used ‘0’ for all option.
(
if {?Location} = '0' then
{table.Location} = {table.Location}
else
{table.Location} = {?Location}
)
and
(
if {?Patientnumber} = '0' then
{table.Patientnumber} = {table.Patientnumber}
else
{table.Patientnumber } = {?Patientnumber}
)
Now my questions is how could I handle multi values parameters in my report.
For example, if user pick five patientnumber 234, 345, 456, 546, 456 and three location base1, base2, base3 then how I am I going to retrieve these parameters in my report and query my selection formula.
Please inform me how could i pass multi value fields in crystal reports.
Please tell me is it possible in CR 8.5 or not.
I have used :
(
if {?Patientnumber} = '0' then
{table.Patientnumber} in {table.Patientnumber}
else
{table.Patientnumber } = {?Patientnumber}
)
and it worked fine with number, but string is not working in that formula.
Please inform me with any logic.
Thanks