Jump to content
We've recently updated our Privacy Statement, available here ×

How to make text field stretch with overflow conditionally?


jbreault
Go to solution Solved by szaharia,

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...