cancel
Showing results for 
Search instead for 
Did you mean: 

Change color/style of a row in List GUIBB?

Former Member
0 Kudos

Is it possible to change the colour or the general style of the font or/and background of rows in a list GUIBB? I have a dataset where some entries (rows of the list) should be displayed to be inactive. So I would like e.g. to change the text colour to gray for these entries or to define some different background colours of the active/inactive rows. Any ideas?

Best regards,

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

former_member215610
Active Participant
0 Kudos

Hi Thomas,

Follow below steps:

1. Add additional field into your list structure with data element WDUI_TEXT_VIEW_DESIGN

 

2. Change the filed description.

  CLEAR ls_field_def.
  ls_field_def-name = give field name which you want to change color.
  ls_field_def-cell_design_ref = 'DESIGN' . " name of the filed i.e. newly added field name with data                                                                                              "element WDUI_TEXT_VIEW_DESIGN


  APPEND ls_field_def TO CT_FIELD_DESCRIPTION.

  3. Set the value to 'DESIGN' field in ct_data at runtime with below values.

00 emphasized

11 groupTitle

01 header1

02 header2

03 header3

04 header4

05 label

06 label_small

07 legend

Regards,

Ragavendra

Former Member
0 Kudos

Hi Ragavendra,

thank you for the answer. It is at least a very limited solution to the problem. If anyone has another idea how to modify the layout/font size of a row, please let me know!

Best regards,

Thomas

Answers (0)