cancel
Showing results for 
Search instead for 
Did you mean: 

Change the color of UI Table cell or row

Former Member
0 Kudos

Hello Dear Friends,  I want to change the color of cell in my table dynamicly, ı tried lost of things  but it is still not work,   I couldnt find any space to bind my table row as a cell design and i came up to use column cell design proporitties and i bind one of my column with a node whose card. 1 - n and bind an attribute whose type wdui_table_cell_design.  And in init, i set the attribute like,  set my_attribute, name = 'CELL_DESIGN' value = 'possitive' or i tried value '02'.  But still dont work,  need your helps,   Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member213957
Participant
0 Kudos

Hi,

In ALV: we can set colors without help of context node or attributes.

just follow steps:

1. get the column reference, lr_column = lo_value ->if_salv_wd_column_settings->get_columns.

2. loop the record conditionally and fill the cell design values,

   lr_column->set_cell_design( exporting value = cl_wd_table_column=>e_cell_design-one ).

In Wd table:

1. create a attribute in context with data type wdui_table_cell_design

2. pass the values conditionally to above attribute with help of cl_wd_table_column values

3. bind this attribute to one of the column property called cell-design.

regards,

Kishorekumar SVS

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

     Try this document it will be helpful for your requirement,

http://scn.sap.com/docs/DOC-4068

Regards,

Rajashiva Ramalingam