
Use this method to add a dropdown list box to a form in a dynamic document.
For further information, refer to Using Dropdown List Boxes .
CALL METHOD valid_reference->add_select_element
EXPORTING name = name
value = value
options = options
IMPORTING select_element = select_element.
|
Parameter and Type |
Opt. |
Description |
|---|---|---|
|
name TYPE SDYDO_ELEMENT_NAME |
X |
The name of the dropdown list box. You can address this name in the event handler method for the element as sender->name . |
|
value TYPE SDYDO_VALUE |
X |
A default value for the dropdown list box |
|
options TYPE SDYDO_OPTION_ TAB |
An internal table, each line of which represents an entry in the dropdown list |
|
|
select_element TYPE REF TO CL_DD_SELECT_ ELEMENT |
An object reference to the dropdown list box. |