Skip to Content

Regarding HTMLB TableView Celclick

Hi All,

I have an HTMLB tebleview where the first column is a LINK .

When i click this cell (link) , i have following values n the method DO_HANDLE_EVENT of my class :

htmlb_event->name = 'tableView'.

table_event->event_type = 'cellClick'.

I need to capture the DATA of the ROW for which the CELL was clicked in an internal table .

The HTMLB TableView in the looks like:

<htmlb:tableView id = "list"

emptyTableText = "<%= otr(BBP_SUS_UI/LIST_ORDER_NO_ENTRIES_FOUND) %>"

selectionMode = "MULTISELECT"

sort = "SERVER"

onHeaderClick = "onmyHeaderClick"

onNavigate = "onMyNavigate"

onRowSelection = "onMyRowSelection"

visibleRowCount = "<%= lepp %>"

visibleFirstRow = "<%= iv_list_nav_index %>"

width = "100%"

table = "//model/order_list"

headerVisible = "<%= IV_HEADER_VISIBLE %>"

headerText = "<%= status %>"

iterator = "<%= io_iterator %>" />



Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Apr 07, 2008 at 10:16 PM

    Hi Anu,

    try this sample code in the onInputProcessing event handler.

              event           TYPE REF TO cl_htmlb_event,
              tableview_event TYPE REF TO cl_htmlb_event_tableview.
        event = cl_htmlb_manager=>get_event( runtime->server->request ).
        IF event->id = 'list'. "Check it is the correct <HTMLB> element
          IF event->name = 'tableView' AND event->event_type = 'rowSelection'. "Check correct event
            tableview_event ?= event.
            "tableview_event->serverevent contains the name of the event
            "tableview_event->selectedrowindex contains the index of the selected row
            "tableview_event->prevselectedrowindextable contain list of previously selected rows


    Graham Robbo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 07, 2008 at 12:17 PM

    look at class CL_HTMLB_EVENT_TABLEVIEW, especially at methods



    Might be useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 07, 2008 at 12:38 PM


    Maybe you can put the values you want in the link itself, when you build it in your iterator. Doing so, you will be able to pass the values as URL parameters to the destination page.

    The URL attribute of your link will look like:




    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.