reportah Posted May 29, 2009 Share Posted May 29, 2009 I have a 'java.lang.string''BREAD/RYE | |'I need to remove the pipe symbols from the string but keep 'BREAD/RYE'i tried:new Boolean($F{r_item_desc}.replace('|',' '))but that just renders $F{r_item_desc} invisable on my reportcould somebody help me with a 'Print when expression' technique that will do this.TIA Post Edited by reportah at 05/29/2009 04:08 Link to comment Share on other sites More sharing options...
reportah Posted May 29, 2009 Author Share Posted May 29, 2009 Answering my own Question AgainIt has to be in Text Field Expression in the form$F{r_item_desc}.replace( "|", " " )not in 'Print when expression'in the formnew Boolean($F{r_item_desc}.replace('|',' '))Post Edited by reportah at 05/29/2009 05:02 Link to comment Share on other sites More sharing options...
dnvsrikanth Posted May 29, 2009 Share Posted May 29, 2009 Hi, You can also use substring() funtion DNV Srikanth. Link to comment Share on other sites More sharing options...
chandan.k Posted May 28, 2021 Share Posted May 28, 2021 I am using this syntax : "Date :"+new String($F{customFields.ex_date}.replace("T00:00:00.000Z"," ")) To remove the time zone.100 % It will work. 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