Skip to Content
author's profile photo Former Member
Former Member

using list box in table.

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 25, 2009 at 11:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 25, 2009 at 11:02 AM

    Hi Sivaprasad,

    You can try go through this other [thread |table in webdynpro;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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.