DropDown (PRIM_MD.Dropdown)
Dropdown
Ancestors - Field (PRIM_MD.Input)Control (PRIM_MD.Control)Control (PRIM_CTRL)Object (PRIM_OBJT)
Details
A DropDown is a list based control that when clicked expands to show the list of available values.
Depending on configuration, a DropDown can also allow data entry in the edit portion of the control.
When an item is chosen from the DropDown, the field values associated with underlying entry will be returned to the parent component.
Example
In this example a dropdown is populated with 3 different values.
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME)
Define_Com Class(#PRIM_MD.Dropdown) Name(#DropDown) Caption('My Drop Down') Displayposition(1) Left(140) Parent(#COM_OWNER) Tabposition(1) Top(75) Width(261)
Evtroutine Handling(#COM_OWNER.Initialize)
#DropDown.Items.Add( "Value 1" )
#DropDown.Items.Add( "Value 2" )
#DropDown.Items.Add( "Value 3" )
Endroutine
End_Com