chaitanya.mamunuru Posted November 27, 2018 Share Posted November 27, 2018 Hello:We need replace our null values in our jaspersoft report with Ellipsis, can someone please help me with that. Thanks in advance. Link to comment Share on other sites More sharing options...
gabriel.nadoroski Posted November 27, 2018 Share Posted November 27, 2018 Hi,So, you can use this:<textFieldExpression> <![CDATA[($F{Street} != null ? $F{Street} : " " )+" - "+($F{Number} != null ? $F{Number} : " " )+" - "+($F{Complement} != null ? $F{Complement} : " ")]]></textFieldExpression>[/code]I caught this of one part of a report I have in my system, it is like a IF, or TERNARY, if the field is different of null he print the field, else he print just a blanc space, you can do this with a variable (I guess), or change the blanc space for a other field or variable.Hope this helps.Gabriel Nadoroski 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