rajuchacha007 Posted July 20, 2010 Share Posted July 20, 2010 Hello experts, Is there any possibility to print the fields in parenthese like in ().I mean if i have a filed called $F{Employee_project_ID} which is displayed as 4. Is there any possibility to display it like (4). Can we do it in ireport? If yes, do I need to amend any changes in expression? Best regards,Abhijit. Link to comment Share on other sites More sharing options...
slow Posted July 20, 2010 Share Posted July 20, 2010 if your field is an Integer field... then, you must change the textfield to a String type and set the expressione like:"("+yourFieldName.intValue()+")"if your field is a String field... then simply set the expression as:"("+yourFieldName+")"if it is in a different format, post its format so I can help you in a better way. give us feedback :)_________________________________________if it works... give me KARMA points please! : ) _________________________________________listening: Underworld - Rez/CowgirlPost Edited by slow at 07/20/2010 08:35 Link to comment Share on other sites More sharing options...
rajuchacha007 Posted July 20, 2010 Author Share Posted July 20, 2010 @slow...indeed it worked. I have only one query in my mind. while executing it within java or while grouping this, the change i made in data type would create any problem? thanks for the suggestion man. Link to comment Share on other sites More sharing options...
slow Posted July 20, 2010 Share Posted July 20, 2010 if you modify only the "presentation" layer... or a textfield you have no issue to solve.if you make some modification to the field coming from the db, maybe some problems can happen... but i think, (I'm sure) you have modified only the textfield that show the code using the format "("+yourFieldName.intValue()+")" so it's all ok.thanks for karma...listening Lamb - Gabriel Link to comment Share on other sites More sharing options...
rajuchacha007 Posted July 20, 2010 Author Share Posted July 20, 2010 Yes. Thanks for the explanation. :) 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