Skip to Content
0
Former Member
Dec 08, 2008 at 10:17 AM

ALV splitter with HTML viewer not working

602 Views

HI,

I´m using a ALV splitter(no screen elements) with 2 containers (go_cell_left(html), go_cell_right(tree but disabled))

any ideas why my html viewer "go_html" shows an empty screen ? (tree is working but disabled)


* ALV
data:
  go_docking       type ref to cl_gui_docking_container,
  go_splitter      type ref to cl_gui_splitter_container,
  go_cell_left     type ref to cl_gui_container,
  go_cell_right    type ref to cl_gui_container,
  go_tree          type ref to cl_gui_alv_tree,
  go_html          type ref to cl_gui_html_viewer.

* Create docking container
  create object go_docking
    exporting
      parent = cl_gui_container=>screen0
      ratio  = 90
    exceptions
      others = 6.
  if sy-subrc  = 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

* Create splitter container
  create object go_splitter
    exporting
      parent            = go_docking
      rows              = 1
      columns           = 2
*      NO_AUTODEF_PROGID_DYNNR =
*      NAME              = ''
    exceptions
      cntl_error        = 1
      cntl_system_error = 2
      others            = 3.
  if sy-subrc  = 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

* Get cell container
  call method go_splitter->get_container
    exporting
      row       = 1
      column    = 1
    receiving
      container = go_cell_left.

*  go_cell_right = go_splitter->get_container(
*                        row            = 1
*                        column         = 2 ).

* HTML Viewer
  create object go_html
    exporting
      parent = go_cell_left.

* create tree control


*
** register events
*  perform register_events.


* HTML Viewer
  create object go_html
    exporting
      parent = go_cell_left.

data: doc_url type text1000.

doc_url = 'http://www.sap.de'.

    call method go_html->show_url
             exporting
                  url = doc_url
             exceptions
                  cnht_error_parameter = 1
                  others = 2.
        if sy-subrc ge 2.

        endif.


Edited by: Gordon Breuer on Dec 8, 2008 11:17 AM

Edited by: Gordon Breuer on Dec 8, 2008 11:18 AM