show multiple selections on a parameter in header
show multiple selections on a parameter in header
(OP)
I am using cr 2016
I have a parameter and I can select one or more items
I also have the parameter in the header so you can display the selection. This works fine for selecting one item BUT not if I select more than one (data itself is fine its just the display in the header)
Ideally I would like it to show each selection in this format --> select a, select b, select c etc etc
I have a parameter and I can select one or more items
I also have the parameter in the header so you can display the selection. This works fine for selecting one item BUT not if I select more than one (data itself is fine its just the display in the header)
Ideally I would like it to show each selection in this format --> select a, select b, select c etc etc
RE: show multiple selections on a parameter in header
Also, what is the ultimate display? Let’s say the parameter is {?Car}. Are you saying you want to see:
Mazda, Chevrolet, GMC
?? Or what specifically?
-LB
RE: show multiple selections on a parameter in header
RE: show multiple selections on a parameter in header
stringvar x;
numbervar i;
for i := 1 to ubound({?parm}) do(
x := x + {?parm}[i]+", "
);
left(x,len(x)-2)
-LB
RE: show multiple selections on a parameter in header
{
var result = new StringBuilder(values[0].ToString(),values.Length);
for (int i = 1; i < values.Length; i++ )
{
result.AppendFormat(", {0}", values[i]);
}
return result.ToString();
}
https://nearlearn.com/machine-learning-classroom-t...
https://nearlearn.com/artificial-intelligence-cour...
RE: show multiple selections on a parameter in header
if {?Parameter}="*"
then "All Parameters"
else join ({?Parameters},",")
if you don't have the wildcard then you could just use
join ({?Parameters},",")