on 11-30-2011 5:21 PM
Hi All,
I have a requirnment in which i need to show checkboxes at different cell of a avl column..
I have created a new column in alv in which i set the visibility of the checkboxes shown in a alv column and here is the way i am binding it in WDDOMODIFY..
IF ls_col-id CS 'BOX'.
SPLIT ls_col-id AT 'BOX_' INTO lv_head lv_tail.
CONCATENATE 'CHK_VISIBLE_' lv_tail INTO lv_temp.
CONDENSE lv_temp NO-GAPS.
lr_column = ls_col-r_column.
CREATE OBJECT lr_checkbox
EXPORTING
checked_fieldname = ls_col-id.
lr_checkbox->set_visible_fieldname( lv_temp ).
lr_column->set_cell_editor( lr_checkbox ).
ENDIF.
But for some reason the checkbox visibility is not getting set as i have strored in column..
Any Idea..??
Thanks in advance
Vishesh.
Create one more attribute for visibility lv_visible as WDUI_VISIBILITY in the node to which ALV is bound.
When you create that checkbox instance, there will be corresponding method for visibilty using fieldname like SET_VISIBLE_FIELD_NAME, then pass this feildname for visibiity.
Then based on the check boxclick, you have to modify the internal table to update this attribute.
Example code -
loop at it_table into wa_table.
if lv_check eq 'X".
lv_visible = abap_false.
else.
lv_visible = abap_true.
endif.
modify it_table from wa_table transporting lv_visible.
endloop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.