Reputation: 23301
I have a row that uses an expression like this:
if (row["type"] == "OTHER") {
dataSetRow["questionText"]
}
else {
dataSetRow["exposure"]
}
I want it so that when the "type" is "OTHER" that it will change the colspan to 4, thus ignoring the other columns. But in other cases it will be the normal colspan of 1.
Is this possible?
Upvotes: 2
Views: 2099
Reputation: 18569
Yes, you can do that.
In your report, select the cell that you want to modified.
Then go to script
tab, select onRender
script.
I've tried this code using eclipse IDE and it's work properly.
this.colSpan=3;
So modify that code as you want.
More about BIRT cell element : Cell
Upvotes: 3