cancel
Showing results for 
Search instead for 
Did you mean: 

Change font color of table Value

Former Member
0 Kudos

Hello,

We have a requirement to highlight (with distinguish color) a specific value of a table UI based on column data.

Suppose we have a table with 3 column and 5 row, the first column have the name of a property, the second column have the value of property and the third column have a value that it says if the value of second column is positive or negative. if the value is positive we need to highlight the specific value of second column with a different color (green) even if the value is negative we have to change the font color in red.

Can anyone please help me to achieve this requirement?

Best Regards

Andrea

Accepted Solutions (0)

Answers (3)

Answers (3)

satish_kumar106
Explorer
0 Kudos

Hi Anand,

Create an attribute in the node which u bind to the table with type as "TableCellDesign" . Bind this attribute to TableCellDesign propety in each column(s) which needed color. At runtime you can set different colours by using WDTableCellDesign.X to this attribute.

Please close the thread if your query is resolved.

Regards,

Satish S.

anand_govardhan
Active Participant
0 Kudos

Hi,

You can refer this blog also. [Colorful Table in Web Dynpro|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3548] [original link is broken] [original link is broken];

Regards,

Anand G

junwu
Active Contributor
0 Kudos

check those.