on 08-20-2008 5:46 AM
Hi experts
I am new to WD ABAP.
I want to know about the feasibility of multiple slection in a dropdown.Is it possible ??
If yes how can we achieve that.
Thanks
Monika
Multiple Selection is not possible in Dropdown
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
multiple selection is not possible in drop down
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Monika,
If your requirement is that you want some values in list and want to have multiple selection in those values then go for
ui elemnt ITEMLISTBOX there you can display as well as select the multiple values .
And its very easy to use that element since multiple selection option is ther in properties itself.
Please refer following code which will give you the selected data from the itemlistbox.
data lt_elements type wdr_context_element_set.
data lr_node type REF TO if_wd_context_node.
data node_element type ref to IF_WD_CONTEXT_ELEMENT.
data it_type type wd_this->elements_ZPROMOTIONS.
data wa_type type wd_this->element_ZPROMOTIONS.
lr_node = wd_context->get_child_node( 'ZPROMOTIONS' ).
lt_elements = lr_node->get_selected_elements( ).
loop at lt_elements into node_element.
node_element->get_static_attributes( importing static_attributes = wa_type ).
append wa_type to it_type.
endloop.
where ZPROMOTIONS is the node with which datasource property of itemlistbox is bound.
Hope this will solve your problem.
regards
PG
Edited by: PG on Aug 20, 2008 2:40 PM
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.