nvenky Posted November 29, 2007 Share Posted November 29, 2007 Hi, We have a requirement in our project to display a BOX when the text field is Empty. When the text field is having data, it should not have any border. I found two options to cater this requirement. 1) "conditionalStyle" - This allows me to conditionally display the border but I have to write style for every textfield in the report. I will not be able to use the Style Template also in this case as conditionalStyle cannot be declared in it. 2) "printWhenCondition" - This option allows me to display a empty Static text field with border whenever the value of the text field is Empty. But problem here is I should have a dummy static text field for every element and have conditions assigned to them. Is there a elegant way of doing this in Jasper reports? Link to comment Share on other sites More sharing options...
lucianc Posted November 30, 2007 Share Posted November 30, 2007 nvenky wrote:Is there a elegant way of doing this in Jasper reports? No. Conditional styles cannot use contextual information about the report elements. If you think this should be supported, please post a feature request. Regards,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