dropdownlist值的绑定


  DATA: lo_nd_a      TYPE REF TO if_wd_context_node,  "NOTE
        lo_nd_a_info TYPE REF TO if_wd_context_node_info. "

  DATA: lt_values    TYPE TABLE OF wdr_context_attr_value.

 

* 绑定值取得
  SELECT A~key A~name
    INTO TABLE lt_values
    FROM A.

 

*  插入一行空行
  INSERT INITIAL LINE INTO lt_values INDEX 1.

 

*  将取得的值绑盯给NOTE:a的A属性(DropDownList)
  lo_nd_a      = wd_context->get_child_node( name = wd_this->wdctx_a ).
  lo_nd_a_info = lo_nd_a->get_node_info( ).

  lo_nd_a_info->set_attribute_value_set(
    name      = 'A'
    value_set = lt_values ).

你可能感兴趣的:(table,insert)