on 09-25-2008 5:30 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.