Chris
Chris

Reputation: 1

BIRT - Expression for Visibility doesn't work

The visibility expression for an object in BIRT doesn't work. I bind the Dataset on the Grid (see here). There will be a black dot in each Cell. It will show if the Condition is true (see example picture: Grid)

My Expression / Condition for Visibility of the object (see expression)

row["Achievement"]=3 && row["Behavior"]=1

Why is it not working? I also tried different syntax e.g. ==3, ='3' and so on. The number is an Integer.So, normally not needed to treat it like a string.

Upvotes: 0

Views: 1276

Answers (1)

Chris
Chris

Reputation: 1

solved it... couple of mistakes

  1. "==" is correct
  2. Version 4.3 is very sensitive. So, High commas help... either " or '
  3. The logic was wrong as well. The right answer was also using a || insteadt of &&

The solution, which works:

row["Achievement"]=="3" || row["Behavior"]=="2"

Upvotes: 0

Related Questions