on 03-11-2008 4:31 PM
Hi experts,
I used an editable ALV. In firs collumn I Used an cell editor checkbox (cl_salv_wd_uie_checkbox). I neet to react on each click on each checkbox in order to do some actions in context, that is not part (mapped) to ALV.
There are IF_SALV_WD_CONFIG~CHANGED event in checkbox class. Is it possible to use (and how) this event for my task ? Any example ?...
Thanks, Gabriel
Hi Gabriel,
Try uisng ON_DATA_CHECK event.
Create a method and assign the above mentioned event. In the method have the folleoing code.
FIELD-SYMBOLS: <l_value> TYPE ANY .
Find the check box that has modified
LOOP AT r_param->t_modified_cells INTO ls_modified_cell
WHERE attribute EQ 'ATTRIBUTE NAME'.
ASSIGN ls_modified_cell-r_value->* TO <l_value> .
CLEAR lv_index .
lv_index = ls_modified_cell-index .
ENDLOOP
<l_value> should have the value. In your case X or space.
You can also find index for that which is lv_index.
So now you know the index so u know in which cell the check box is modified.
Try that.
Thank You,
Gajendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ismail,
yhanks for your answer. The problem is, that I am not able to recognize in the method WDDOAFTERACTION, what UI element caused the action.
Gabriel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Gabriel,
You can check your on click of your checkbox in Wddoafteraction method.
You can store the initial data in a global table and then compare it with the
new data in the context node . Then you can proceed with your further processing.
You can also achieve this by doing this comparision in wddomodifyview method.
Hope this solves your problem.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.