cancel
Showing results for 
Search instead for 
Did you mean: 

Coluring the Particular Rows?

Former Member
0 Kudos
35

Hi all,

I want to colouring the entire row wherever the field value is emergency.

How can i achieve it?

Regards,

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Add colors to table

/people/sap.user72/blog/2006/04/25/colourful-table-in-web-dynpro

Former Member
0 Kudos

Hi,

Let "Rows" be the context node used as the the table's data source.

Add a subnode "State", cardinality 1:1, selection 1:1, singleton=false to "Rows".

Add a calculated attribute "TextColor" of type "TextViewSemanticColor" to "State".

In the generated get-method of the calculated attribute, return WDTextViewSemanticColor.NEGATIVE if the corresponding "Rows"-element has a negative value.

Bind the "semanticColor" property of the TextView (table cell editor of column showing values) to attribute "Rows.State.TextColor".