uranganathan Posted March 5, 2007 Share Posted March 5, 2007 Hai, I am trying to mask(hide) some digits of Account Number in my Account Number. For Example : 3456789024633131313 should be displayed as XXXXXXX024633131313 in iReports.Can any body advice me. regardsuvaraja.R Link to comment Share on other sites More sharing options...
spipe Posted March 6, 2007 Share Posted March 6, 2007 in the expression of the textfield write : "XXXXXX-XXXXX"+$F{var}.substring(9,15) (you will have to find the good parameters);) Link to comment Share on other sites More sharing options...
zethris Posted May 23, 2007 Share Posted May 23, 2007 I too need to hide some digits on a report for examplea SSN: XXX-XX-1465 The above example, tried different ways doesn't seem to work. What do I actually need to do? here is what I currently have with the default example above placed into it. I may not be understanding what it's doing exactly, so perhaps a rundown on what is happening might help too. $F{SSN}.equals("_") ? "" : "XXXXXX-XXXXX"+$F{SSN}.substring(9,15) thanks!Post edited by: zethris, at: 2007/05/22 19:32 Link to comment Share on other sites More sharing options...
rzimmer Posted May 27, 2007 Share Posted May 27, 2007 I think you have to try something like that in the expression of the textfield: "XXX-XX-" + $F{SSN}.substring(8,10) 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