rbojja Posted July 21, 2008 Share Posted July 21, 2008 Hi,I am need to show the status on my report. ie when already my report is printed and the user is printing for second time or more i must show as 'DUPLICATE' on the report.For this i am having a column in my database where column name as 'STATUS'. The values in the database showup as 'Printed'. But i want to show as Duplicate on the report. I dont have any permissions to update my database column status values from Printed to DUplicate.How can i show alias value here for printed as duplicate on the report.How is this acheived in our Jasper Reports. Link to comment Share on other sites More sharing options...
lucianc Posted July 22, 2008 Share Posted July 22, 2008 You can use a simple text field expression for this:<field name="StatusColumn"/><textField> ... <textFieldExpression>"Printed".equals($F{StatusColumn}) ? "DUPLICATE" : ""</textFieldExpression></textField> HTH,Lucian 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