Code: Alles auswählen.
DATA: tv TYPE REF TO cl_htmlb_tableview.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
DATA: string1 TYPE string.
tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = runtime->server->request
name = 'tableView'
id = tv_event->id
).
tv_data = tv->data.
tv_data TYPE REF TO cl_htmlb_tableview.
string1 = tv_data->get_cell_value ( row_index = row column_index = col ).
Code: Alles auswählen.
loop at tv_data->allcolumnnames into feld.
value = tv_data->get_cell_value(
row_index = tv_data->prevselectedrowindex
column_index = sy-tabix ).
endloop.
Code: Alles auswählen.
FIELD-SYMBOLS: <row> TYPE ANY,
<col> TYPE ANY.
...
ASSIGN tv_data->row_index TO <row>.
ASSIGN tv_data->column_index TO <col>.
string1 = tv_data->get_cell_value( row_index = <row> column_index = <col> ).
Code: Alles auswählen.
<htmlb:tableViewColumn columnName = "<%= gs_felder-feldwert %>"
width = "<%= gs_felder-feld_breite %>"
type = "TEXT" <-- !!!
edit = "<%= <editable> %" > </htmlb:tableViewColumn>
Code: Alles auswählen.
<htmlb:tableViewColumn columnName = "<%= gs_felder-feldwert %>"
width = "<%= gs_felder-feld_breite %>"
type = "INPUT"
edit = "<%= <editable> %>">
</htmlb:tableViewColumn>
Code: Alles auswählen.
DATA: tv TYPE REF TO cl_htmlb_tableview.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
DATA: string1 TYPE string.
FIELD-SYMBOLS: <row> TYPE ANY,
<col> TYPE ANY.
tv ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = ’tableView’
id = tv_event->id ).
tv_data = tv->data.
tv_data TYPE REF TO cl_htmlb_tableview.
ASSIGN tv_data->row_index TO <row>.
ASSIGN tv_data->column_index TO <col>.
string1 = tv_data->get_cell_value(
row_index = <row> column_index = <col> )
Code: Alles auswählen.
IF event IS NOT INITIAL
AND event->event_name = ’button’
AND event->event_id = ’bt_accept’.
LOOP AT tv_data->allcolumnnames INTO LAB_STRUK-felder.
value = tv_data->get_cell_value(
row_index = tv_data->prevselectedrowindex
column_index = sy-tabix ).
ENDLOOP.
ENDIF.