Posts

Showing posts with the label row color

Column Formatting

Image
We need formatting like * negatives values enclosed in () * Red color for negative values * format the number if not null How to do. Have a look at the syntax <?attribute@incontext:color;'red'?> <?attribute@incontext:font-weight;'bold'?> that's it, fantastic, you will see values in red and bold , with bracket. Other times, you might want to add border based on condition. here it is <?if@row:ELEMENT_NAME='SOME_CONDITION'?> <?attribute@incontext:border-top-color;'black'?> <?attribute@incontext:border-top-style;'solid'?> <?attribute@incontext:border-top-width;'thin?> <?attribute@incontext:text-align;'center'?> <?end if?> How to underline the text. <fo:inline text-decoration="underline"> <?YOUR_NUMBER_ELEMENT?> </fo:inline> This syntax is going to help you

Alternating bg colors of row GROUPS

Image
It Wasn't a tricky question , but some tweak has to be done, to make it work.. Forum quesion He was looking to make a alternate color for rows.. ha a, he has the trick, he needs to alternate color on each group, not on each row, One way to do this , of-course as Mr.Matt said "variable ugliness" is this :) we need to find a way to toggle for every group, i was looking for some in-built function, it is there i guess, but could not able to find , which one it is... so thought for a while came up with this solution, which is cool and pretty i guess. The trick is to identify that the group end, and another group starts..