Skip to Content

How to get the row index of which content was updated?

Hi,

I have a tableview which has some columns can be edited.After user updated the content in cells, I want to get the index of row which has updated content. So how can I get it?

P.S: I just want to get the updated rows' index. I don't want to loop every row and check if it was updated.

Thanks in advance!

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 21, 2005 at 10:54 AM

    if you are editing the table by selecting a row then you can get the selected row index ...

    DATA: tv TYPE REF TO cl_htmlb_tableview.

    DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.

    TV ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST

    NAME = 'tableView'

    ID = 'tab1' ).

    IF TV IS NOT INITIAL.

    TABLE_EVENT = TV->DATA.

    SELECTEDROWINDEX = TABLE_EVENT->SELECTEDROWINDEX.

    READ TABLE <internal table> INDEX SELECTEDROWINDEX

    INTO <work area>.

    ENDIF.

    if you are using some iterator than you can easily render the cells

    check this weblog , i think it will definitely solve your problem

    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

    have a nice time

    Mithlesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Long Zheng

      hi

      Go through the weblog that i have refered you in the above post.

      Actually <b>The RENDER_CELL_START method will be called for each and every cell that will be rendered, also for cells in virtual columns</b>

      <b>The RENDER_CELL_START method will be called for each and every cell that will be rendered</b>

      If You are not aware of iterator, than just follow the step by step procedure as mentioned in the weblog.

      It make work lot easier.

      In the begining it might not be easy, but if you follow the weblog it will definitely solve your problem.

      I have also used the same weblog to learn this concept...

      Its very much easy....

      just try once...

      have a nice time.....

      Mithlesh Kumar Jha

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.