Jump to content

variable value depend on \'field value\'


sal1150

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 I prefer do the test in the query, because I am more familiar with sql than java.

select case when employee_sex = 'F' then 'Female' else 'Male' end as Sexe,.......

but it  is  a "classical" test in java:

($F{employee_sex}.equals("F"))?$V{Sexe}="Female":$V{Sexe}="Male" (I am not sure about the exact syntax)

 

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