Skip to Content
0
Former Member
Nov 28, 2004 at 09:53 PM

dropdownListBox help

37 Views

I made an drop down list, but now I want to select a special item automaticly.

OnInitialization:

data: dataref2 type ref to data,

titel type SHSVALTAB.

get reference of zTSAD3T-TITLE into dataref2.

CALL METHOD runtime->ddic_utils->get_simple_helpvalues

EXPORTING

data_object_ref = dataref2

CHANGING

helpvalue_tab = titel.

and in the BSP-page:

<htmlb:dropdownListBox id = "anrede"

nameOfKeyColumn = "key"

nameOfValueColumn = "VALUE"

selection = "<%= anrede %>"

table = "<%= titel %>" />

It works, but now there is a field, "anrede", which has the value "Herr" and this value must be the selected item in the dropdownlist, when it is been shown the first time.

Had anyone an idea?

Bye

Jens