‎2007 Nov 27 1:14 PM
Hi all,
i want to give a color to a particular column in table control how i can achieve this? currently am using textbox for table control heading display is there any way to achieve this scenario, kindly help me regarding this scenario.
‎2007 Nov 27 2:52 PM
iF YOU ARE USING TEXT BOX FOR HEADIG, GO TO PROPERTIES THEIR U CAN SET THE COLOR FOR ONLY COLUMN HEADING,
FIRST TELL ME HOW YOU SELECT THE COLUMNS FOR TABLE CPONTROL ,
I MEAN YOU ARE USING THROUGH PROGRAM OR THROUGH DATABASE TABLE.
‎2007 Nov 27 2:52 PM
iF YOU ARE USING TEXT BOX FOR HEADIG, GO TO PROPERTIES THEIR U CAN SET THE COLOR FOR ONLY COLUMN HEADING,
FIRST TELL ME HOW YOU SELECT THE COLUMNS FOR TABLE CPONTROL ,
I MEAN YOU ARE USING THROUGH PROGRAM OR THROUGH DATABASE TABLE.
‎2007 Nov 28 3:40 AM
Hi Chaitanya,
Am using text box for displaying header column because it has to be displayed dynamically the days because am working in time sheet program, so i have 31 columns for 31 days in my table control which is from database table,so i have to display Saturday and Sunday alone in color i.e. the column heading alone should come in color.
‎2007 Nov 28 7:06 AM
You can sort of do this if you make you column headers as Input/Ouput fields rather than Text, and then set the screen-intensified = '1'. via a loop at screen in the PBO. However, this will make the column header label "bright" i.e. blue in a normal dynpro screen which is not very easy to distinguish... so in addition to this you could, perhaps, put an icon in the column header for days on weekends e.g. something like that below.
Jonathan
in TOP include:
include <icon>.
data
g_header(10) type c. "define in top includein PBO:
concatenate icon_led_green 'Sat' "icon + name of day
into g_header separated by space.
loop at screen.
if screen-name = 'G_HEADER'. "column header
screen-intensified = '1'.
modify screen.
endif.
endloop.
‎2007 Nov 29 8:26 AM
Hi Jonathan,
Thanks for Your Valuable Suggestion my problem was solved.