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

Displaying multiple parameter values

Status
Not open for further replies.

cathyg18

MIS
Mar 12, 2001
54
US
Hi there,

I have a parameter that accepts multiple values, and want to display those values on the report header or footer. Placing the parameter itself in either of these places just displays the first value in the list. Is there a way to tell it to show ALL values selected?

Thanks,

Cathy
 
That depends on the datatype. For strings it would be:

join({?param},",") to list them separated with commas. It needs to be less than 255 chars or it will fail

Lisa
 
Thanks Lisa.

If I put join({?param},",") in my report footer, it simply returns the words join({?param},",").

Making a formula called PARAMLIST, the word 'join' is not recognized as a key word, and returns 'The rest of this does not appear to be part of the formula.'

I'm on Crystal v7. Does this make a difference?

Thanks

Cathy
 
Again it will need to be less than 255 chars. But here is how to output a text array (which a multiple val param is).

In a formula place the following (replacing {?param} with your parameter)

local stringvar paramlist := "";
local numbervar i := 1;

paramlist := {?param}[1];

while i < count({?param}) do
(
i := i + 1;
paramlist := paramlist + &quot;, &quot; + {?param};
);

paramlist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top