jenkins Posted September 21, 2011 Share Posted September 21, 2011 Hello there,I would like to replace a list of special characters in case one or more appear in a text field. An example of the extended characters: äöüMy expression looks like this: $F{Account}.replace( 'ä' , 'ae' ).replace( 'ö' , 'oe' ).replace( 'ü' , 'ue' )As its certain that my list of extended characters will grow I would like to find a more elegant solution with an array. Any ideas how this can be impelmented in iReport? Link to comment Share on other sites More sharing options...
svenn Posted September 21, 2011 Share Posted September 21, 2011 You could do it with a custom scriplet.Here's a good examplehttp://blog.sacaluta.com/2007/07/jasperreports-scriptlet-example.html 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