olehenrik Posted November 15, 2007 Share Posted November 15, 2007 Hi, I'm using iReport 1.2.8 and have an issue concerning text field with concatenated fields with styled text (using underline for query fields).If the "Blank when null" is checked and its contains static text inside the text field the database fields ($F{}) will return null (if the field has no value). I could use a NVL(test,' '), but the space will be underlined. Is there a way to avoid this problem? RegardsOle Henrik Link to comment Share on other sites More sharing options...
Pedja Posted November 15, 2007 Share Posted November 15, 2007 You can try something like this in your field expression: ("Your static text "+(($F{field}!=null)?$F{field}:"")) Or, if you don't want your static text to be visible when the field is null, try putting $F{field}!=null in your "Print when expression". Link to comment Share on other sites More sharing options...
olehenrik Posted November 21, 2007 Author Share Posted November 21, 2007 This worked perfectly! Thank you very much! RegardsOle Henrik 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