HTMLB Iterator Element 정리

1. HTMLB Iterator 설명 : http://scn.sap.com/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

2. Inputfield

DATAlcl_inputfield     TYPE REF TO cl_htmlb_inputfield,

      lcl_inputfield cl_htmlb_inputfield=>factoryalignment ‘RIGHT’
                                                     id        p_column_key
                                                     value     l_value
                                                     type      ‘STRING’ ” DATE.
                                                     cellvalue ‘TRUE’
                                                     maxlength ‘6’
                                                     disabled  lv_disabled ).

p_replacement_bee lcl_inputfield.



3. link

DATA: lcl_link TYPE REF TO cl_htmlb_link.


      CONCATENATE ‘fn_popup_go1(‘ <col1> ‘,’ <col2> ‘);’ INTO lv_onclientclick SEPARATED BY ‘”‘..

      lcl_link cl_htmlb_link=>factoryid            p_column_key
                                         onclientclick lv_onclientclick
                                         text          l_value ).
      p_replacement_bee lcl_link.



4. dropdownlistbox

selection 값이 없으면 table데이터의 첫번째 값을 보여준다.

[#M_소스보기|접기|

      DATAls_dlist TYPE zhr02_ls_domainlist01,

            lt_dlist TYPE zhr02_lt_domainlist01.
      DATAlo_ap_common TYPE REF TO zcl_hr_ap_common.
      DATAlo_dlist     TYPE REF TO data.
      FIELD-SYMBOLS<gt_table> TYPE STANDARD TABLE.

*  평가등급 도메인 값.
      CREATE OBJECT lo_ap_common TYPE zcl_hr_ap_common.

      CALL METHOD lo_ap_common->get_domain_read
        EXPORTING
          i_domain      ‘ZDAPPRGRPA’
          i_gubun       ‘1’
        IMPORTING
          et_domainlist lt_dlist.

      CREATE DATA lo_dlist LIKE lt_dlist.
      ASSIGN lo_dlist->TO <gt_table>.

      <gt_table> lt_dlist.

      CALL METHOD cl_htmlb_dropdownlistbox=>factory
        EXPORTING
          disabled          ‘FALSE’
          id                p_column_key
          nameofkeycolumn   ‘DDTEXT’
          nameofvaluecolumn ‘DOMVALUE_L’
          selection         p_column_key
          table             lo_dlist
        RECEIVING
          element           lcl_dropdownlist.

      p_replacement_bee lcl_dropdownlist._M#]

5. TextView
      lcl_textview = cl_htmlb_textview=>factory( align = ‘CENTER’
                                                 id    = p_column_key
                                                 text  = lv_weght_txt ).
      p_replacement_bee = lcl_textview.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments