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

show multiple selections on a parameter in header

Status
Not open for further replies.

mart10

MIS
Nov 2, 2007
394
0
0
GB
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
 
What is the datatype of the parameter?

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
 
its string parameter and yes as per your example, I drop the ?Parameter into the header and want to show as you suggest. At moment it just seems to show one value
 
Place this formula in the header:

stringvar x;
numbervar i;
for i := 1 to ubound({?parm}) do(
x := x + {?parm}+", "
);
left(x,len(x)-2)

-LB
 
I just normally do my parameter displays like this:
if {?Parameter}="*"
then "All Parameters"
else join ({?Parameters},",")

if you don't have the wildcard then you could just use
join ({?Parameters},",")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top