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

Restrict Values to Parameter Field Default Values List

Status
Not open for further replies.

nes105

Technical User
Jan 15, 2004
14
US
I am using the following formula in v8.5 to enable the user to select one or more values from the Parameter Field Default Value list:

(IF{?VendCode}<>"ALL" THEN {ICITEM.SEGMENT1} = {?VendCode} ELSE IF {?VendCode}="ALL" THEN TRUE)

The formula (and default value list) also includes an "all" selection, so that the user may select "all", instead of adding all values, one at a time. When "all" is selected, I would like only those values from the default values list to be returned. Instead, all values from the entire table are returned.

Thanks
 
I think you would have to specify those defaults in the selection formula, as in:

IF{?VendCode}<>"ALL" THEN
{ICITEM.SEGMENT1} = {?VendCode} ELSE
IF {?VendCode}="ALL" THEN
{ICITEM.SEGMENT1} in [1,4,7,11] //assuming this is a number field

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top