Expression Builder for Visibility Settings [message #1726436] |
Sun, 13 March 2016 14:31 |
Richard White Messages: 1 Registered: March 2016 |
Junior Member |
|
|
Hello, Can anyone help me
This is my first ever post and I am a novice with BIRT.
I am trying to use the Visibility settings to show a row depending on certain values.
I think this may be my main problem, I am not trying to hide the row if the conditions are met but show the row if conditions are met.
I would like to show the row if
failurecode = "COMBUSTION ENGINE - DIESEL" or
jpnum = "%M01-008%"))
I can achieve this individually by using either of the following in the expression builder
- BirtComp.notEqual(row["failurecode"], "COMBUSTION ENGINE - DIESEL")
- BirtComp.notLike(row["jpnum"], "M01-008")
but I cannot get them to work together
I have tried the following If statement, but I am getting errors
if (BirtComp.Equal(row["failurecode"], "COMBUSTION ENGINE - DIESEL")) {true;}
else if (BirtComp.like(row["jpnum"], "%M01-008%")) {true;}
else {false;}
|
|
|
Powered by
FUDForum. Page generated in 0.02890 seconds