Table of Contents Previous Section


WOPopUpButton

Synopsis

WOPopUpButton { list=anArray; [item=anItem; value=displayedValue;] [selection=objectArray;] [name=fieldName;] [disabled=YES|NO;] ... };

Description

WOPopUpButton displays itself as a selection list that allows the user to select only one item at a time. The related element WOBrowser is similar to WOPopUpButton except that it allows the user to select more than one item at a time.

list
Array of objects from which the WOPopUpButton derives its values. For example, colleges could name the array containing objects that represent individual schools.

item
Identifier for the elements of the list. For example, aCollege could represent an object in the colleges array.

value
Value to display in the selection list; for example, aCollege.name for each college object in the list.

selection
Array of objects that the user chose from the selection list. For the college example, selection would hold college objects. Since a WOPopUpButton lets the user select only one item at a time, this array holds no more than one item.

name
Name that uniquely identifies this element within the form. You can specify a name or let WebObjects automatically assign one at runtime.

disabled
If disabled evaluates to YES, this element appears in the page but is not active.

Examples

Forms and input elements

Table of Contents Next Section