2008 Dec 04 6:09 PM
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
2008 Dec 04 6:52 PM
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.
a®
2008 Dec 04 6:52 PM
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.
a®
2008 Dec 05 8:16 AM
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
2008 Dec 05 8:23 AM
Hi,
Check the report,
SAPHTML_DEMO1
Please do appreciate if helpful.
Regards,
Ameet
2008 Dec 05 9:48 AM
Hi,
is there an example where HTML Container is used with splitter ?
Thx,
Gordon
2008 Dec 05 10:34 AM
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.
2008 Dec 05 12:00 PM
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