cancel
Showing results for 
Search instead for 
Did you mean: 

How to set background colors to individual table cell dynamically

Former Member
0 Kudos

Hi there,

I am trying to design something similar as Team calendar where for each row (employee record) there will be n number of entries in one row and each of these cell can have separate colors based on some condition.

Just to clarify, I do not want to change color of text displayed in the cell, but background color..

Thanks a lot for your inputs.

Rgds

Sudhir

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Sudhir,

You can do it statically as well as dynamically.

Create a context attribute "color" of type in your table node

com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign

Bind this with the column proerty "cellDesign".

Set it using setter methods.

OR

just set the property of

Table Cell BackGround design in design time

regards,

Siva

Former Member
0 Kudos

Thanks Siva,

I have forgotten to mention we are on NW04 , and TableCellDesign not available to us right now. Is there any work around to use this.

Rgds

Former Member
0 Kudos

Any suggestion on this..

Answers (1)

Answers (1)

Former Member
0 Kudos

withdrawn