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

Tableview

Guys,

How to collect the info that which row # is cliclked in tableview in do_handle_data event ?. I have used iterator in a local class of model class

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 12:01 PM

    Also take a look at this topic.

    Inputfield values while using tableview & iterator

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 09, 2005 at 12:04 PM

    Hi Manish,

    take a look at this code:

    DATA: TABLE_EVENT TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW,

    TABLE TYPE REF TO CL_HTMLB_TABLEVIEW,

    selectedRowsTable type INT4_TABLE.

    TABLE ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST

    NAME = 'tableView'

    ID = '<your controller id>_<table id>' ).

    if table is not initial.

    TABLE_EVENT ?= TABLE->DATA.

    clear selectedRowsTable.

    selectedRowsTable = table_event->PREVSELECTEDROWINDEXTABLE.

    endif.

    If you are using a more complicated controller hierarchy the id will be different.

    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.