October 11, 2007, 09:17 AM
GamPJust to add a little bit of extra liens to this post:
There are two ways to get multiple values from an html dropdown list.
The first one has been discussed above and concerns html screens that have been created within DevStudio with DevStudio tools. These will respect the FOC_NONE technique and also enclose values in quotes sepearated by AND or OR clauses.
The second way is how we used to do this in the old days, when there was no HTML painter around in WebFOCUS.
That way returns the variables as separate &vars, made unique by a sequence number attached to it.
Example:
Your field is called FIELD.
If you select 1 value, you get returned &FIELD.
If you select more than 1 value, you get returned:
&FIELD - contains the first value you selected
&FIELD0 - contains the total number of values selected
&FIELD1 - &FIELDxx contain the individual selected values.
Quite a nice technique, I used it a lot.