on 05-25-2009 5:24 AM
hi,
i am using a table in webdynpro in which the first is list box. i am using listbox with key but it displaying single value in each column and when i select a value from list box the event is not trigered..
Hi,
Try this code.
DATA lo_nd_dd TYPE REF TO if_wd_context_node.
DATA lo_el_dd TYPE REF TO if_wd_context_element.
DATA lo_node_info_dd TYPE REF TO if_wd_context_node_info.
* data: wa type wdr_context_attr_value,
* itAB type table of wdr_context_attr_value.
TYPES: BEGIN OF TT,
NAME TYPE STRING,
VALUE TYPE STRING,
END OF TT.
DATA: ITAB TYPE TABLE OF TT,
WA TYPE TT.
WA-NAME = 1.
WA-VALUE = 'AAA'.
APPEND WA TO ITAB.
* navigate from <CONTEXT> to <DD> via lead selection
lo_nd_dd = wd_context->get_child_node( name = wd_this->wdctx_dd ). " GET NODE
* get element via lead selection
* lo_el_dd = lo_nd_dd->get_element( ).
* get node info
lo_node_info_dd = lo_nd_dd->get_node_info( ). " GET NODE INFO
* get all declared attributes
lo_node_info_dd->SET_ATTRIBUTE_VALUE_SET( " BIND NODE INFO WITH ITAB VALUES
name = 'DROP'
value_SET = ITAB ).
Here DD is node name and DROP is attribute inside node.
For selecting value from this node assign event to this node.
Regards
Vishnu Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sivaprasad,
You can try go through this other [thread |;of yours where you had asked for a more complex requirement. I have already covered the usage of DropDown within that. Just try go through that & your issue should be resolved. Please don't create multiple threads for similar issues.
Regards,
Uday
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 | |
10 | |
10 | |
9 | |
9 | |
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.