on 07-12-2007 10:07 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.