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

Showing results of parameters 1

Status
Not open for further replies.

muffntuf

MIS
Jan 7, 2003
155
US
Hi,

I am looking for a solution to this: My users want the ability to choose a discrete value, range of values or mutiple values for parameters.

I need to be able to show the selection criteria for that parameter no matter what they chose.

Anyone know how to do this?

I am using CR10.

Thanks,
muffntuf
 
Check my FAQ:

faq767-5684

You didn't share the parameter type, and of course the solution differes based on the data type. The FAQ covers all types.

-k
 
Sorry,

parameter type and field type is string.

Thank you!
 
I figured it out:

whileprintingrecords;

global numbervar increment;
//increments the loop so that all parameter entries can be displayed

global stringvar output := "";
//creates a string "running total" so that all entries can be displayed

for increment := 1 to count({?Project Number}) do
(
if minimum({?Project Number}[increment]) = maximum({?Project Number}[increment])
then (output := output + (Minimum({?Project Number}[increment]) + chr(10);))
else (output := output +(Minimum({?Project Number}[increment]) + ' to '
+ (Maximum({?Project Number}[increment])) + chr(10););
);
);
output;
 
From my FAQ:

whileprintingrecords;
stringvar Output:="";
numbervar Counter;
For Counter := 1 to ubound({?MyStringParameter}) do(
if minimum({?MyStringParameter}[Counter])= maximum({?MyStringParameter}[Counter]) then
Output:= Output & minimum({?MyStringParameter}[Counter])&chr(13)
else
Output:= Output & minimum({?MyStringParameter}[Counter])& " to "& maximum({?MyStringParameter}[Counter])&chr(13)
);
left(Output,len(Output)-1)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top