2006 Sep 06 4:12 PM
Good day for all.
Is anybody know the way to make cl_gui_column_tree nodes have tool tip with given text?
Good day for all.
Is anybody know the way to make cl_gui_column_tree nodes have tool tip with given text?
2006 Sep 07 4:43 AM
You can do something like this :
DATA ls_fieldcat TYPE lvc_s_fcat,
gt_fieldcat_lvc TYPE lvc_t_fcat.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'XLOEV'.
ls_fieldcat-ref_table = 'ANLA'.
ls_fieldcat-coltext = 'Assigned to WBS'(003).
ls_fieldcat-tooltip = <ADD YOUR TEXT HERE>.
ls_fieldcat-seltext = ls_fieldcat-coltext.
ls_fieldcat-outputlen = '3'.
APPEND ls_fieldcat TO gt_fieldcat_lvc.
create empty tree-control
CALL METHOD <TREE_OBJECT>->set_table_for_first_display
EXPORTING
is_hierarchy_header = gv_hierarchy_header
I_BACKGROUND_ID = 'ALV_BACKGROUND'
it_list_commentary = gt_header[]
CHANGING
it_outtab = gt_asset[] "empty table
it_fieldcatalog = gt_fieldcat_lvc[].
this method must be called to send the data to the *frontend
CALL METHOD <TREE_OBJECT>->frontend_update.
2006 Sep 07 7:13 AM
2006 Sep 07 7:36 AM
No, i can't:) First of all, we don't use lvc_s_fcat structure in tree:) When we add new node or item to the tree, trere is no any "too tip" fields in corresponding structures. So, may be anybody has another guess-work?
2006 Sep 07 7:14 AM