-
I'm desperately looking for a mechanism suitable to style an inserted record based on a value in that record. It seems the recommended way is to implement n AreaListener - but the methods in that class are unsuitable. The other solution suggested is using the jx:if command. That requires setting up two template areas per record - in a pool of more than 50 templates - and I have more conditions that need to be styled - writing a separate area template for each possible condition is not reasonable. Using the CellDataUpdater command is closer to what I need - it is called for each record and the data is accessible - but, again, transformer->getWorkbook() doesn't include the cells that need to be styled. How do I a get a reference to the target cell? Am I missing something? I've included code demonstrating that my code using AreaListener and styling the workbook doesn't work.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Can't you use the Excel conditional formatting for that? E.g. define a rule for a particular column that applies a style you need based on the value? |
Beta Was this translation helpful? Give feedback.
Can't you use the Excel conditional formatting for that? E.g. define a rule for a particular column that applies a style you need based on the value?