on 02-14-2007 10:34 PM
Gurus,
I am trying to dynamically change the row color based on a value from the back-end. I have read through some of the post here and tried the following:
I added a 'Value Attribute' to the node and set the type to com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor. On the getter method I added some logic. Then on the TextView - tableCellEditor, I changed the sementicColor to use this node. As a result, the text color of the row is dynamically changing, but I am unable to change the background color of the row.
I know this can be do on NW 2004s, but we are on NW 2004 SP18 and don't have one of the property type that is available on the 2004s version.
Does anyone know how to do it? Any help would be highly appreciated. Thanks.
Regards,
Abu
Hi Abu,
Do like this.
1. Create a context variable(Say " color ") inside the node of ur table.
2. Assign the type "TableCellDesign" to the variable "color" from Local Dictionary -->com.sap.....uielementdefns.
3.For all the columns of ur table, bind the celldesign property to "color"
4.You can give the predefined colours from SAP to the rows(say for row 1) by assigning
wdContext.node<tableNode>().get<Table>ElementAt(0).setColor(WDTableCellDesign.CRITICALVALUE_MEDIUM);
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi:
did you try cell variant?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.