on 2018 Nov 22 5:44 PM
Hi experts,
I inserted a button on a standard screen, with the purpose of selecting all the checkboxes of the ALV display column. But clicking on it does not.
DATA lo_componentcontroller TYPE REF TO ig_componentcontroller,
lr_node TYPE REF TO if_wd_context_node,
tl_nuli_nutr TYPE STANDARD TABLE OF wd_this->element_nuli_nutr,
vl_checkbox TYPE wdy_boolean VALUE 'X'.
FIELD-SYMBOLS: <wl_nuli_nutri> TYPE /plmb/s_lbl_nuli_nutr_ui.
lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
lr_node = wd_context->path_get_node( path = 'NULI.NULI_NUTR' ).
lr_node->get_static_attributes_table(
IMPORTING
table = tl_nuli_nutr ).
LOOP AT tl_nuli_nutr ASSIGNING <wl_nuli_nutri>.
<wl_nuli_nutri>-flg_show_item = vl_checkbox.
ENDLOOP.
lr_node->invalidate( ).
lr_node->bind_table(
EXPORTING
new_items = tl_nuli_nutr
set_initial_elements = abap_true
).
I searched and found some content here, but I still have not got the solution.
Thanks
Regards
ED
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
You are invalidating the node before you bind the table. Try commenting lr_invalidate. One more thing I believe you need not declare that vl_chekbox, a simple <wl_nuli_nutri>-flg_show_item = abap_true should suffice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
9 | |
8 | |
8 | |
7 | |
7 | |
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.