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

catencate null string in textfield


Recommended Posts

By: Minimini - minimini

catencate null string in textfield

2003-03-17 05:04

I create a textfield with expression

$F{a} + $F{b} + $F{c}

a,b,c are string that can be null, I want the JR to display blank when they are null. The expression above give me nullnullnull in the report.

 

i have try:

($F{a}==null)?"":$F{a} + ($F{b}==null)?"":$F{b} + ($F{c}==null)?"":$F{c}

but got compile error about incompatible types

 

Anyone can help me about this, thanks

 

 

 

 

By: Minimini - minimini

RE: catencate null string textfield (Omit it)

2003-03-17 05:09

Oh, I miss out the () for each ($F{a}==null)?"":$F{a}

 

I solve the problem now

 

 

 

 

By: Minimini - minimini

RE: catencate null string textfield (Omit it)

2003-03-17 05:09

Oh, I miss out the () for each ($F{a}==null)?"":$F{a}

 

I solve the problem now

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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