cancel
Showing results for 
Search instead for 
Did you mean: 

Which Item? (Tableview)

0 Kudos

Hi guys,

I've been working with tableview many times, but now i got a challenge.. I need to call a popup screen from my tableview I mean from one of its columns(its a link with img) .. I should know before my submit which tableview's line I have click as e.g:

Perfect, but how do i get the line index or line clicked or POSNR value?

Thanks in advance,

Alex

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

check the example application SBSPEXT_TABLE , page TableViewClient.bsp

or else you can call the method CL_HRRCF_ITERATOR=>GET_TV_ATTR in the do request and get the row which is clicked, and get the value in the DO_REQUEST method.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use the below piece of code in the Do Request method.


call method cl_hrrcf_iterator=>get_tv_attr
    exporting
      p_tv_id                      = '<Table View ID>'
      p_component_id        = me->component_id
      po_request                = me->request
    importing
      po_tv_event           = loc_table_event.

Loc_Table_Event will have the details about the selected item in the table view.

Reward points if helpful.

Regards,

Gokul,N

0 Kudos

Sorry guys.. but i not able to put my code in this question.. the browser show me up an erro HTTP 501/502.

I'll try to describre:

I got a tableview, then many tableViewColumns, but the last one is a tableViewColumn with htmlb link inside. So i want to use the events onClientClick and onClick. The first one will call a popup and the second one will submit. My problem is to identify which tableview index(row) i clicked. I mean, i got a javascript function, but i do not know how get the line index from tableview.

Has someone any clue?

Alex