Code: Alles auswählen.
data dropdownbox type ref to cl_htmlb_dropdownlistbox.
create object dropdownbox.
get reference of itab into dropdownbox->table.
dropdownbox->nameofkeycolumn = 'KEY'.
dropdownbox->nameofvaluecolumn = 'VALUE'.
bee->add( element = dropdownbox ).
wa_col_def-edit_bee = bee.
wa_col_def-columnname = 'KEY'.
wa_col_def-edit = 'X'.
wa_col_def-wrapping = 'X'.
wa_col_def-title = 'Einrichtung'.
wa_col_def-alignforsignednumbers = 'X'.
wa_col_def-encode = 'X'.
wa_col_def-horizontalalignment = 'center'.
wa_col_def-width = '100'.
append wa_col_def to it_col_def.
Hat jemand eine Idee ?'null' ist Null oder kein Objekt
Code: Alles auswählen.
value = tv_data->get_cell_value(
row_index = tv_data->prevselectedrowindex
column_index = sy-tabix ).
Code: Alles auswählen.
clear wa_col_def.
create object bee.
create object dropdownbox.
dropdownbox->id = 'KEY'.
get reference of it_dropdown[] into dropdownbox->table.
dropdownbox->nameofkeycolumn = 'KEY'.
dropdownbox->nameofvaluecolumn = 'VALUE'.
dropdownbox->selection = val_einri.
bee->add( element = dropdownbox ).
wa_col_def-edit_bee = bee.
wa_col_def-columnname = 'KEY'.
wa_col_def-edit = 'X'.
wa_col_def-wrapping = 'X'.
wa_col_def-title = 'Einrichtung'.
wa_col_def-alignforsignednumbers = 'X'.
wa_col_def-encode = 'X'.
wa_col_def-horizontalalignment = 'center'.
wa_col_def-width = '100'.
append wa_col_def to it_col_def.
Code: Alles auswählen.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = tv_id ).
if tv is not initial.
tv_data = tv->data.
if tv_data->prevselectedrowindex is not initial.
read table <table> index tv_data->prevselectedrowindex
assigning <row>.
data value type string.
loop at tv_data->allcolumnnames into feld.
value = tv_data->get_cell_value(
row_index = tv_data->prevselectedrowindex
column_index = sy-tabix ).
if value is not initial.
* IN SAP-Tabelle speichern
endif.
endloop.
Code: Alles auswählen.
phtmlb:containerTabStrip