trupti.kamathankar Posted February 28, 2020 Share Posted February 28, 2020 Hi, I want to justify the text in textfield, but only justify property doesn't work for it. I want to add equal tabspace between characters. Kindly help.Thanks. Link to comment Share on other sites More sharing options...
I am Leo Posted February 28, 2020 Share Posted February 28, 2020 Please provide the screenshot Link to comment Share on other sites More sharing options...
trupti.kamathankar Posted February 28, 2020 Author Share Posted February 28, 2020 Example,Now showing text in textfield as,image1But, I want it be like,image2Thank you for your response. Link to comment Share on other sites More sharing options...
I am Leo Posted March 2, 2020 Share Posted March 2, 2020 I found this: https://stackoverflow.com/questions/57006941/justified-property-of-textfield-and-statictext-is-not-working-in-jaspersoft-reHope this can help you; Link to comment Share on other sites More sharing options...
trupti.kamathankar Posted March 2, 2020 Author Share Posted March 2, 2020 Thanks. Link to comment Share on other sites More sharing options...
Solution trupti.kamathankar Posted March 4, 2020 Author Solution Share Posted March 4, 2020 Hi, I tried above solution. But, it doesn't work when we used 'BlankWhenNull' property. That's why I asked a question.But, now I found the solution. if we want to use 'tabset' variable but don't want to add textfield expression for 'Null' values, then we can use printWhenExpression as, '$F{Title}!=null && !$F{Title}.isEmpty()'. It works, means, if data is coming from dataset then 'tabset' equally distribute the characters and when no data is coming from dataset then above 'printWhenExpression' add blank space when null values are coming.The reason for not using 'BlankWhenNull' property, because, it hides textfield borders too. But, I want to display textfield with no values (with blank space) if null value is coming from dataset.Thanks. 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