cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically changing font colour of table rows

Former Member
0 Kudos

Hi,

Based on some condition, i need to change the Font colour of rows of the table.Say for one condition Blue and for other it will be grey. Any pointers for the same.

Regards,

Akash Modi

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can try the following approach to solve your problem.

1. Create value attribute ("vaTextColor") under the value node which is bound to the table. (bound to the datasource)

2. Set the data type of that attribute ("vaTextColor") to "com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor"

3. Bound the attribute "vaTextColor" to each column of the table (or to the columns to which you require color change).

4. Based on the condition set the "vaTextColor" to some of the standard TextViewSemanticColor.

Hope this helps you solving your problem. If you require any further help reply back.

Regards,

Santhosh.C

Former Member
0 Kudos

Hey Akash,

Check out Harsh Chawla's weblog on Table Handling in WebDynpro:

/people/harsh.chawla/blog/2005/03/08/table-handling-in-webdynpro

You can bind the design property value to context attribute in your structure that you can set based on condition.

-Chris

Former Member
0 Kudos

For my knowledge we can't change the color of the font in each row !!!

You can set the design property which will take "Alternative, standard,transparent" values.

Regards, VIP

Former Member
0 Kudos

Hi

You can set the design property to alternating in the table and try.

Kishore