Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV tree - html header usage

Former Member
0 Likes
2,233

Hi,

i´m using the following tree object

create object go_tree

exporting

parent = go_docking

node_selection_mode = cl_gui_column_tree=>node_sel_mode_multiple

item_selection = 'X' " required for double-click event on item

no_html_header = 'X'

no_toolbar = 'X'

exceptions ...

what is the usage of the html_header and how can i modify this one.

Is it possible to show an image or xml date there ?

Thx,

Gordon

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,677

For example if you given the value NO_HTML_HEADER as X then in the set_table_for_first_display and passing the HTML header over there also, the heading will NOT display in the tree.

For example look at the program R_ALV_TREE_TOOLBAR_MANAGER


* create tree control
  create object tree1
    exporting
        parent              = l_custom_container
        node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
        item_selection      = 'X'
        no_html_header      = 'X'    "<<<< ------  <<<<
        no_toolbar          = ''
    exceptions
        cntl_error                   = 1
        cntl_system_error            = 2
        create_error                 = 3
        lifetime_error               = 4
        illegal_node_selection_mode  = 5
        failed                       = 6
        illegal_column_name          = 7.

* repid for saving variants
  ls_variant-report = sy-repid.

* create emty tree-control
  call method tree1->set_table_for_first_display
    exporting
      is_hierarchy_header = l_hierarchy_header
      it_list_commentary  = lt_list_commentary  "<<< HTML Header
      i_logo              = l_logo
      i_background_id     = 'ALV_BACKGROUND'
      i_save              = 'A'
      is_variant          = ls_variant
    changing
      it_outtab           = gt_sflight 
      it_fieldcatalog     = gt_fieldcatalog.

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
1,678

For example if you given the value NO_HTML_HEADER as X then in the set_table_for_first_display and passing the HTML header over there also, the heading will NOT display in the tree.

For example look at the program R_ALV_TREE_TOOLBAR_MANAGER


* create tree control
  create object tree1
    exporting
        parent              = l_custom_container
        node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
        item_selection      = 'X'
        no_html_header      = 'X'    "<<<< ------  <<<<
        no_toolbar          = ''
    exceptions
        cntl_error                   = 1
        cntl_system_error            = 2
        create_error                 = 3
        lifetime_error               = 4
        illegal_node_selection_mode  = 5
        failed                       = 6
        illegal_column_name          = 7.

* repid for saving variants
  ls_variant-report = sy-repid.

* create emty tree-control
  call method tree1->set_table_for_first_display
    exporting
      is_hierarchy_header = l_hierarchy_header
      it_list_commentary  = lt_list_commentary  "<<< HTML Header
      i_logo              = l_logo
      i_background_id     = 'ALV_BACKGROUND'
      i_save              = 'A'
      is_variant          = ls_variant
    changing
      it_outtab           = gt_sflight 
      it_fieldcatalog     = gt_fieldcatalog.

Read only

0 Likes
1,677

Hi,

thx for your quick response.

is it possible to show a web picture in the html header ?

R_ALV_TREE_TOOLBAR_MANAGER is using the p_logo = 'ENJOYSAP_LOGO'.

I would like to use a picture like "http://.....jpg"

Thx,

Gordon

Read only

Former Member
0 Likes
1,677

Hi,

Check the report,

SAPHTML_DEMO1

Please do appreciate if helpful.

Regards,

Ameet

Read only

0 Likes
1,677

Hi,

is there an example where HTML Container is used with splitter ?

Thx,

Gordon

Read only

0 Likes
1,677

I found another problem.

the HTML DEMO uses:

CREATE OBJECT my_container

EXPORTING

container_name = 'HTML'

EXCEPTIONS

others = 1.

What is the usage of container_Name ?

IN my splitter there is no container name ?

and without it´s not working.

Read only

0 Likes
1,677

Hi,

Container_name is the container element u define as workarea on screen for displaying the content in se51 transaction.

As for splitter if u wanna use splitter container then u can c and combine the previous code with this standard report

RSDEMO_SPLITTER_CONTROL

Regards,

Ameet