Hello,
I am fairly new to BIRT, but I'm trying to make my skill in BIRT better

I have a report with a main table (big one), and within each of these columns of this main table, there are tables there (sub-tables).
I would like to ask what's the best way to highlight a base row of the main table when a certain value on a sub-table comes up.
I have tried 3 ways of doing this, but I couldn't get any of them to work. Here are the 3 ways I tried:
1) On the base table row element's onRender script enter:
if (row["CONF_APP_PHASE_NAME"].toString() == "Deployed") {
this.getStyle().backgroundColor = "#808080";
}
Where "CONF_APP_PHASE_NAME" is the column of the sub-table containing the value in question, and "deployed" is the value that triggers the highlight.
I believe this way doesn't work because CONF_APP_PHASE_NAME is not an available column binding from the base table row element.
2) On the sub-table row element containing the value in question's onCreate script enter:
row._outer.getStyle().backgroundColor = "#808080";
I believe this doesn't work because getStyle() is not an available method on _outer. Is row._outer part of the BIRT API? Or is it some other thing? If it is part of the API, I couldn't find it there. Is there an available method for my needs on row._outer?
3) On the sub-table row element containing the value in question's onCreate script enter:
if (row["CONF_APP_PHASE_NAME"] == "Deployed") {
// Highlight
reportContext.setPersistentGlobalVariable("HighlightTopTableRow", "true");
}
else {
// Don't highlight
reportContext.setPersistentGlobalVariable("HighlightTopTableRow", "false");
}
And on the base table row element's onRender script enter:
if (reportContext.getPersistentGlobalVariable("HighlightTopTableRow") == "true") {
this.getStyle().backgroundColor = "#FF0000";
}
This didn't work either. The background colour doesn't get set on the base table row using this method.
What do you think of my 3 methods above? What is your opinion?
Is there a more elegant, simple way of solving my problem?
Thank you,
Albert