I'm using JODReports to generate ODT files from templates. I want to fill a table with data so I used a JOOScript
with Freemarker directives.
Now I want to conditionally format each row depending on my data:
@table:table-row
[#list rows as row]
[#if row.bar = "ipsum"]
[#assign rowcolor="#0000AA"]
[#else]
[#assign rowcolor="#000000"]
[/#if]
@/table:table-row
[/#list]
@#table:table-cell
<What_Should_I_Put_Here_To_Color_The_Cell_Background_With_rowcolor?>
As you can see, if row.bar == "ipsum"
I want the entire row be background-colored with #0000AA
. Do you know a way (or an acceptable workaround) to achieve that?
Thank you.