on 02-02-2010 4:16 PM
Hello,
I tried to create a dropdown by index cell in a table with different valuesets in each row. So I created an attribute VALUESET of type WDR_CONTEXT_ATTR_VALUE_LIST in my node to provide different valuesets per element. In my ALV-table I bound the property "valueset_fieldname" of the dropdown-cell to the context-attribute VALUESET:
lo_column = lo_alv_model>if_salv_wd_column_settings~get_column( id = 'PRICE').
CREATE OBJECT lo_drop_down_idx
EXPORTING
selected_key_fieldname = u2018PRICEu2019.
lo_drop_down_idx->set_valueset_fieldname( value = u2018VALUESETu2019 ).
lo_column->set_cell_editor( lo_drop_down_idx ).
Now I have the problem, that the list of the dropdown-cell displays the proper amount of values but not the proper texts . My valueset looks for example like this:
Value: A
Text: A
Value: B Text: B Value: C Text: C
Value: D
Text: D
But my Dropdown-cell shows these values:
A A A
D
Could you please help?
Edited by: Developer on Feb 2, 2010 5:32 PM
Hi,
I guess somewhere youare udpating the same valueset...
Regards,
Lekha.
Edited by: Lekha on Feb 3, 2010 1:28 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lekha,
thank you for your answer. I think there might be an other reason for this problem. When I debug the view with the Webdynpro-Debugger the valueset in the context contains the correct values but the dropdown shows wrong values.
You also sent me a link with a codesample. In this coding you use the following statement:
lr_drp_idx->set_texts( 'VALUESET' ). This is a method of the class CL_WD_DROPDOWN_BY_IDX. I used the class cl_salv_wd_uie_dropdown_by_idx as I'm working with an ALV-Table. This class doesn't have the method set_texts. Instead it has a method called 'set_valueset_fieldname'. Maybe this method has a bug?
Regards,
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.