on 10-27-2011 5:17 PM
Hi,
It is possible to paint a cell of a table? For example, paint only the cells of a column that contains a number bigger than 10.
Thanks in advance,
Ricard.
Hi Oscar,
In your table node, add a subnode with singleton=false, cardinality 1..1 and selection cardinality 1..1.
Add an attribute of type TableCellDesign and set the calculated property to true.
Bind the tablecolumn's cellDesign property to this attribute.
In the generated get<SubNode><CalcAttribute> method, you could have something like:
Integer intElement = (Integer)element.getAttributeValue(<table node attribute to test against>);
int intValue = intElement.intValue();
if (intValue <10)
return WDTableCellDesign.STANDARD;
else
return WDTableCellDesign.CRITICALVALUE_LIGHT;
Hope this explains!
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think it is possible, you just bind the celldesign to context
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.