cancel
Showing results for 
Search instead for 
Did you mean: 

using list box in table.

Former Member
0 Kudos

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..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

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