patricia.bouffard.lavoie.0 Posted March 14, 2023 Share Posted March 14, 2023 I have combined metadata in JasperSoft Studio this way in a text field : $F{usrtestsequence} + " " + $F{title}.I have checked the box to display as empty instead of null if the data is absent, but it still displays usrtestsequence as null when title exists, as displayed below.How can I ensure that when no usrtestsequence is defined, it will be absent even if the combined metadata exists? Link to comment Share on other sites More sharing options...
patricia.bouffard.lavoie.0 Posted March 14, 2023 Author Share Posted March 14, 2023 Found it. I replaced my text field's content with ($F{usrtestsequence} != null ? $F{usrtestsequence}: "") + " " + $F{title}($F{usrtestsequence} != null ? $F{usrtestsequence}: "") + " " + $F{title}. Link to comment Share on other sites More sharing options...
patricia.bouffard.lavoie.0 Posted March 14, 2023 Author Share Posted March 14, 2023 Found it. I replaced my text field's content with ($F{usrtestsequence} != null ? $F{usrtestsequence}: "") + " " + $F{title}($F{usrtestsequence} != null ? $F{usrtestsequence}: "") + " " + $F{title}. 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