Skip to Content
author's profile photo Former Member
Former Member

tableView with selectionMode = "singleselect",

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
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 02:28 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.