views:

18

answers:

1

hi,

I want to set <printWhenExpression>![CDATA[Boolean.valueOf(true)]]> /printWhenExpression> to Boolean.valueOf(false) when I fill the report according to my conditions,means I want to set value 'false' in <printWhenExpression> at run time. can any one help me for this?

A: 

Instead of having hard coded value Boolean.valueOf(true)/Boolean.valueOf(false) use a variable which is evaluation to a boolean:

Boolean.valueOf(someVariableOfTypeBoolean)

or

Boolean.valueOf(someMethodThatReturnsBoolean())
Boris Pavlović
Ok thanks It works
Dhawal