jbreault Posted May 16, 2017 Share Posted May 16, 2017 I know I can set a text field to stretch with overflow, but is there a way to make it conditional? Basically I have a parameter of class java.lang.Boolean and I want the stretching with overflow to depend on this boolean (named $P{CompleteRemark}). I have been trying to figure this out for a while. Any help you can offer is appreciated. Also, I am using Jaspersoft Studio 6.3.0. Link to comment Share on other sites More sharing options...
Solution szaharia Posted May 17, 2017 Solution Share Posted May 17, 2017 You could use 2 texfields with the same position within the report: one of them having the Stretch with Overflow attribute set to true, the other having the same attribute set to false. For each textfield use a print when expression that depends on your boolean parameter. Link to comment Share on other sites More sharing options...
jbreault Posted May 17, 2017 Author Share Posted May 17, 2017 Thanks! This worked perfectly. A smart and simple solution. 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