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

Regarding Table Control

Former Member
0 Likes
585

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

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.

4 REPLIES 4
Read only

Former Member
0 Likes
566

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.

Read only

0 Likes
565

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.

Read only

0 Likes
565

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 include

in 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.

Read only

0 Likes
565

Hi Jonathan,

Thanks for Your Valuable Suggestion my problem was solved.