zoukankan      html  css  js  c++  java
  • web_dynpro_SELECT_OPTION组件的使用:

    SELECT_OPTION的使用,在主程序里加入SELECT_OPTION组件,然后在视图里使用SELECT_OPTION,在想要的显示的位置设置一个viewCONTAINERUIELEMENT.再在窗口里将uielement嵌套视图到WND_SELECTION_SCREEN,这样的话就可以在视图里使用SELECT_OPTION,在初始化方法里加入INIT_SELECT方法.method init_slection .
      data: lo_cp_usage     type ref to if_wd_component_usage,
            lo_select_op    type ref to iwci_wdr_select_options,
            lt_rangtable    type ref to data.
      lo_cp_usage = wd_this->wd_cpuse_select_options( ).
      if lo_cp_usage->has_active_component( ) is initial.
        lo_cp_usage->create_component( ).
      endif.
      lo_select_op = wd_this->wd_cpifc_select_options( ).
      wd_this->hander_selection = lo_select_op->init_selection_screen( ).
      wd_this->hander_selection->set_global_options(
                                    i_display_btn_cancel  = abap_false
                                    i_display_btn_check   = abap_false
                                    i_display_btn_reset   = abap_false
                                    i_display_btn_execute = abap_false ).
      wd_this->hander_selection->remove_all_sel_screen_items( ).
    *--------------------------------------------------------------------*
      lt_rangtable = wd_this->hander_selection->create_range_table( i_typename = 'ZELYNAME' ).”对应的数据元素名
      wd_this->hander_selection->add_selection_field(
      i_id = 'NAME'”列名
      i_read_only = ''
      it_result = lt_rangtable
      i_no_extension = abap_false
      i_no_intervals = abap_false
      i_description = '姓名'”列描述
      ).
      lt_rangtable = wd_this->hander_selection->create_range_table( i_typename = 'ZELYSEX' ).
      wd_this->hander_selection->add_selection_field(
      i_id = 'SEX'
      i_read_only = ''
      it_result = lt_rangtable
      i_no_extension = abap_true
      i_no_intervals = abap_true
      i_description = '性别'
      ).
    Endmethod.

    ^_^很多人都把资料锁进了note里,以后还怎么百度呢^_^
  • 相关阅读:
    访问修饰符的权限。
    字符编码
    3/11 作业
    3/10 作业
    作业 3/9
    流程控制之for循环
    Exception in createBlockOutputStream
    windows上传文件到 linux的hdfs
    win10 配置 hadoop-2.7.2
    hadoop 源码编译
  • 原文地址:https://www.cnblogs.com/sapSB/p/3015526.html
Copyright © 2011-2022 走看看