on 04-03-2009 9:50 AM
HI,
In web dynpro ALV control, How can i get the lead selection.. For example i have two lines in ALV, When i am using the F4 values for second line field, its sitting in first line. May i know how to get the second line lead selection?
Hi Karthik,
Createa method like on_leadselection and in the fourth coulmn select the ON_LEAD_SELECT event of the alv grid where u have used the alv component i.e. either in the component controller or view.
After in this method u will get to parameter
WDEVENT type ref to CL_WD_CUSTOM_EVENT
R_PARAM type ref to IF_SALV_WD_TABLE_LEAD_SELECT
Then within this method u can write your logic
METHOD on_leadselection .
DATA : lv_index TYPE i,
lv_old_index TYPE i.
lv_index = r_param->index.
lv_old_index = r_param->old_index.
endmethod.
Hopes this will helps you.
Regard
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is a ON_LEAD_SELECT event for each ALV. Try to implement that event and get the lead selected record for that ALV.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
There is method in ALV for get_lead_selection().
Get a lead selection using this method which will return the index of selected row,
Assign the values based on it. I think it should resolve the issue,
If not please give a sample code, we will try to resolve it.
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ;
http://www.flickr.com/photos/31042772@N08/3408386623/
create a event as show above.
Data: index type i.
CALL METHOD lo_nd_timer->set_lead_selection_index
EXPORTING
index = index
.
Regards,
Vivekananthan.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.