on 11-05-2011 4:58 AM
Hello Experts,
We have a requirement to highlight (with distinguish color) a specific row of a table UI based on column data.
Suppose we have a table with 5 column and 10 row, now if the data on 5th column greater than some XYZ value then we need to highlight the specific row with a different color.
Can anyone please help me to achieve this requirement?
Thanks & Regards,
Sambaran Chakraborty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Version: 7.0.10
Let me explain what i did.
RootNode (binded to model node) --> Create a Value node ---> Add a attribute with type Table Cell Design
Into the table for a column ->with input field set the Cell design property of the column as the Attribute defined above.
Now i need to write some code to set the specific color as and when required.
Here can you provide your code.. and correct me if my previous steps are wrong..
Thanks
Sambaran
Hi,
In your outline, I am missing quite a few prerequisites which I mentioned (not sure if you have implemented them already)
your sub node, does it have singleton=false, cardinality 1..1 and selection cardinality 1..1?
The attribute of type TableCellDesign in that sub node, does it have the calculated property to true?
If you've bound each table column's cellDesign property to this calculated attribute, you just put some code in the generated generated get<SubNode><CalcAttribute> method to set the color
For instance by just entering the line
return WDTableCellDesign.CRITICALVALUE_LIGHT
;
in that method will render each linked cell to that color
Not sure what else I can say to explain this, there's not much to code...
hi,
try to manipulate the property "semanticColor", of table cell editor.(This property has a predefined set of values)
hope this will help
_vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.