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

Multi select in the table view.


My requirement is to select the multiple row in the table view, and pass into the database when clicking the update button.

My doubt is How to capture the Multi selected value in the Tableview with out using Iterator.

Can u provide any sample code is most useful to me.

this requirement is very urgent.

answer should be rewarded.



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 Oct 12, 2006 at 03:38 PM

    Hi Ravi,

    I think using iterator is required if you want to retrieve data back, coz if you render each table cell as input field (read only) then only you can get the data back by using get_form_fields method.

    Please refer how to use iterator from the following weblog. Using iterator with MVC approach will ease your task.



    Add a comment
    10|10000 characters needed characters exceeded

    • you can do it without iterator.

      use the following code in oninputprocessing.

      data: table_event type ref to cl_htmlb_event_tableview,

      table type ref to cl_htmlb_tableview .

      table ?= cl_htmlb_manager=>get_data( request = request

      name = 'tableView'

      id = 'tv1' ).

      table_event ?= table->data.

      CALL METHOD table_event->get_rows_selected




      selected_rows = selectedrows .

      now selectedrows table will hold the index number of the selected rows using which you can read your itab to get the selected rows value.

      (do you also have sort and filter in your tableview?)



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.