2006 IR Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now