on 07-23-2008 1:55 PM
Hi
Is there a way to see the text of the dropdown (by key) not the value in my alv?
BR
Andreas
When you use dropdownbykey you see only text not the key.
I think while setting the ValueSet you have given both keys for value and Text columns, check it
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe i have done this. For selection i see the text. But if it is selected i only see the value.
...
data lr_dropdown type ref to cl_salv_wd_uie_dropdown_by_key.
create object lr_dropdown exporting selected_key_fieldname = column-id.
column-r_column->set_cell_editor( lr_dropdown ).
data: lt_valueset type table of wdr_context_attr_value,
ls_valueset type wdr_context_attr_value,
lr_node type ref to if_wd_context_node,
lr_nodeinfo type ref to if_wd_context_node_info.
lr_node = wd_context->get_child_node( 'DATA' ).
lr_nodeinfo = lr_node->get_node_info( ).
ls_valueset-value = '1'.
ls_valueset-text = 'TESTO'.
append ls_valueset to lt_valueset.
lr_nodeinfo->set_attribute_value_set(
exporting
name = column-id
value_set = lt_valueset ).
...
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
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.