Jump to content
We've recently updated our Privacy Statement, available here ×

How to display different values based upon condition


sreyu_2k

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

sreyu_2k
Wrote:

I have a field called del_flg in my DB.

If the field value is 'N', I want 'User Created' to be displayed. else 'User Deleted' to be displayed in the report.

Plz tell me hw to achieve this in iReport.Urgent!

Thanks!

 

I think it would be something like this:

 

($F{del_flg} == "N") ? "User Created" : "User Deleted")

Link to comment
Share on other sites

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...