r.snijders Posted November 6, 2020 Share Posted November 6, 2020 Good morning all,Using Jaspersoft in combination with Coresuite. I made a Text field within the report and enter the next line in the expression Editor. : udfValue("ServiceCall", 13, $F{serviceCall.id}, "FSM_Adresnaam") .When it is empty it return's NullBut i can not figure out how to replace "Null" in to "". I tried the to use: udfValue("ServiceCall", 13, $F{serviceCall.id}, "FSM_Adresnaam").replace("null", "").trim() any ID how to replace? Link to comment Share on other sites More sharing options...
gustavofarias Posted November 13, 2020 Share Posted November 13, 2020 If in the end yout expression evaluates to null, you can always use "Blank when null" text field property to make it vanish. Link to comment Share on other sites More sharing options...
r.snijders Posted November 13, 2020 Author Share Posted November 13, 2020 This is not possible because there is always a value and that is null. Link to comment Share on other sites More sharing options...
Solution gustavofarias Posted November 13, 2020 Solution Share Posted November 13, 2020 Have you tried the built in replace function?see attachment Link to comment Share on other sites More sharing options...
r.snijders Posted November 13, 2020 Author Share Posted November 13, 2020 Good afternoon.thank you for your reply. This did the trick and also found the leave blank when is null optie. Was on a other tab. Thanks you all for the help. 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