07-29-2009 7:14 AM
Hi,
I use the Method cl_gui_alv_tree to build hierarchial ALV list. ıs there a possibility to set color for each column. I tried with emphasize but no Chance.
Thanks for your Reply.
07-29-2009 9:48 AM
Hi,
Setting up emphasize shld wrk.. It wrking for me... Refer the below table/info to color code
Cxyz
x----Colornumbers
y----1/0:inverseon/off
z----1/0:intensifiedon/off
Color numbers are:
x -
Color Intended for
1 - gray-blueheaders
2 - light gray list bodies
3 - yellow totals
4 - blue-green key columns
5 - green positive threshold value
6 - red negative threshold value
7 - orange Control levels
The u201Ckey settingu201D made via the field u201Ckeyu201D of the field catalog overrides this setting. So if you want this color to be colored different than the key color, you should set the u201Ckeyu201D field to space while generating the field catalog. However, then there may be some side effects on column orders. You can set the column order as you want at the frontend. But if this is not suitable for you, then unset all key settings and do all coloring and ordering as you want. Be careful that the function module generating the field catalog will always set the key properties of key fields.
Regards,
Bhargava
07-29-2009 7:24 AM
07-29-2009 9:48 AM
Hi,
Setting up emphasize shld wrk.. It wrking for me... Refer the below table/info to color code
Cxyz
x----Colornumbers
y----1/0:inverseon/off
z----1/0:intensifiedon/off
Color numbers are:
x -
Color Intended for
1 - gray-blueheaders
2 - light gray list bodies
3 - yellow totals
4 - blue-green key columns
5 - green positive threshold value
6 - red negative threshold value
7 - orange Control levels
The u201Ckey settingu201D made via the field u201Ckeyu201D of the field catalog overrides this setting. So if you want this color to be colored different than the key color, you should set the u201Ckeyu201D field to space while generating the field catalog. However, then there may be some side effects on column orders. You can set the column order as you want at the frontend. But if this is not suitable for you, then unset all key settings and do all coloring and ordering as you want. Be careful that the function module generating the field catalog will always set the key properties of key fields.
Regards,
Bhargava
07-30-2009 7:07 AM
hi georgeSB,
You can try the method GET_OUTTAB_LINE in CL_GUI_ALV_TREE. It would provide you with all the info pertaining to the given node key.
GOTO SE80--> Write package name "SLIS"
in this package you find all the program related to ur topic.
ps: This internally uses "tree_get_node_text".
Refer to the demo program
BCALV_TREE_01
BCALV_TREE_02
BCALV_TREE_03
BCALV_TREE_04
BCALV_TREE_05
BCALV_TREE_06
BCALV_TREE_DEMO
Regards
Saurabh Goel