Hi,
I have a bsp with a table.
<htmlb:tableView id = "avise" table = "<%= it_avise %>" emptyTableText = "<center><%= otr(Z_LIEF_PORTAL/no_data) %>" headerText = "<center>Lieferavise für: <%= vendor_name %>" headerVisible = "true" fillUpEmptyRows = "FALSE" visibleRowCount = "20" sort = "SERVER" navigationMode = "BYPAGE" selectionMode = "singleselect" footerVisible = "TRUE" >
Now, when I press a button id_display, the programms goes to OnInputProcessing with the following code.
IF event_id = cl_htmlb_manager=>event_id.
DATA: event TYPE REF TO cl_htmlb_event,
button_event TYPE REF TO cl_htmlb_event_button,
tv TYPE REF TO cl_htmlb_tableview,
tv_data TYPE REF TO cl_htmlb_event_tableview.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
Button ?
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
CASE button_event->id.
WHEN 'id_display'. " anzeigen
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'it_avise' ).
IF tv IS NOT INITIAL.
tv_data = tv->data.
IF tv_data->selectedrowindex IS NOT INITIAL.
navigation->set_parameter(
name = 'idx_data'
value = tv_data->selectedrowindex ).
navigation->goto_page( '../private/anzeigen_lieferavise.htm').
endif.
endif.
WHEN OTHERS.
ENDCASE.
ENDIF.
endif.
Now the problem is, that in the field tv_data->selectedrowindex ist standing not the selected row. I´m working with the design2004.
Regards,
Jens
Add a comment