Jump to content

Recommended Posts

Posted

I am not a Java developer so I dont know the java well enough.

 

My question is. I want to print a value of 'YES' when $F{NAME} is null and 'NO' when it is not null.

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

Try this in your textFieldExpression, wherever you want to display that YES/NO

<textFieldExpression><![CDATA[iF($F{FNAME} == NULL, "YES","NO")]]></textFieldExpression>
 
Simple conditional, displays YES or NO depending on whether or not FNAME is null. The IF conditional works as follows: IF(testExpression, true, false)
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...