cancel
Showing results for 
Search instead for 
Did you mean: 

tableView with selectionMode = "singleselect",

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

the id in the HTMLB-Tag is "avise", in the event-handler you are asking for id = 'it_avise'.

You are using Design 2004? - Which Service-package?

Message was edited by: Martin Protzen

Former Member
0 Kudos

Hi Martin,

thanks, that was the problem.

Design 2004, oh my fingers are a lttle bit to fast, I meen design2003.

Regards,

Jens

Answers (0)