cancel
Showing results for 
Search instead for 
Did you mean: 

Color of Table row

Former Member
0 Kudos

I created a table at design time and binded data from model. I want to change tables first row to red color. I tried to change at design time but all rows colour are being changed.

Can any one tell me how to do it?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create a value attribute "cellEditorColor" under the table node of type com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign.

Map the attribute "cellEditorColor" to "cellDesign" property of all the table column.

To set the color of the row in the table

IPrivate<your view>.ITableNodeElement ele = wdContext.nodeTableNode.getTableNodeElementAt(<row index>);

ele.setcellEditorColor(WDTableCellDesign.BADVALUE_DARK);

This works irrespective of type of cell editor in the column.

Former Member
0 Kudos

Supposing the cell editor is a TextView. Add an attribute "color" of DDIC type "TextViewSemanticColor" to the data source node.

Set the value of the first node element attribute to WDTextViewSemanticColor.CRITICAL, all others to WDTextViewSemanticColor.STANDARD.

Armin