giroe Posted March 31, 2009 Share Posted March 31, 2009 Good morning, I have a question.I have some textfields that have a print when expression.And these textfields are pritty large, so when the print when returns false, I dont want a blanc block.I want the other field(s) to move UP.Example ABCABCEFGEFG <=this has a print when expressionHIJHIJHIJ => output is nowABCABCHIJHIJHIJ => I want:ABCABCHIJHIJHIJI hope someone can help me?Thanks in advance Link to comment Share on other sites More sharing options...
lucianc Posted March 31, 2009 Share Posted March 31, 2009 Set isRemoveLineWhenBlank="true" for the text that can be skipped.HTH,Lucian Link to comment Share on other sites More sharing options...
giroe Posted March 31, 2009 Author Share Posted March 31, 2009 Should have tested it myself. I saw that option. But I didnt think it would work with the 'print when' expression. This was exactly what I needed. But is there a way to say that 'some' elements should NOT move up :)? I dont want the things at the bottom to shift up. It's some sort of footer, but it is not located in the footer-band. Thanks in advance! Link to comment Share on other sites More sharing options...
lucianc Posted March 31, 2009 Share Posted March 31, 2009 Try setting positionType="FixRelativeToBottom" for the footer elements. Link to comment Share on other sites More sharing options...
giroe Posted April 1, 2009 Author Share Posted April 1, 2009 I already tried that. But that does not do the trick. I do believe it should do the trick :) When you 'click' on the position type it sais: How to anchor elements. And thats just what I want, to anchor it to the bottom. This is a small bug? Or are there any other solutions? I think I'll create a footer for the things I want to be at the bottom :) Btw, I dont know if its a bug, or it is something wrong with me. But when I say to windows: open all jrxml files with iReport. In 3.0.0 it did not open iReport, in 3.1.4 it does open iReport, but it doesn't open the report. (just opens iReport) Btw, is it better to use 3.1.4 or is 3.0.0 still fine? Because I do like 3.0.0 better to work with. A lot has changed in 3.1.4 :) Thanks for you replies, Nick Link to comment Share on other sites More sharing options...
lucianc Posted April 1, 2009 Share Posted April 1, 2009 Do you have a sample report to illustrate the FixRelativeToBottom problem?Regarding the iReport issues, I think you would get more educated answers on the iReport forum. If you like iReport 3.0.0 better than 3.1.4, go ahead and use it for now. The problem is that iReport 3.0.0 will stay as it is now and you will not have support for new JasperReports features. At the time you will need this support, hopefully the new iReport will have caught up in terms of usability.Regards,Lucian Link to comment Share on other sites More sharing options...
giroe Posted April 1, 2009 Author Share Posted April 1, 2009 Ok, I made a very simple exampleField 2 will hide,Field 3 should move up (it does)Field 4 is anchored to the bottom, so it should not move up, but it does..Thanks for your help, Nick Link to comment Share on other sites More sharing options...
lucianc Posted April 3, 2009 Share Posted April 3, 2009 Indeed, I should have realized that removeLineWhenBlank affects FixRelativeToBottom elements as well.To achieve what you want, you can nest the "mobile" elements into a frame so that the changes caused by the element which is removed stay inside the frame and do not touch elements outside. I'm attaching your report modified to use a frame.Regards,Lucian Link to comment Share on other sites More sharing options...
giroe Posted April 3, 2009 Author Share Posted April 3, 2009 That's pritty nice such a frame! It also has a print when expression. Didn't every see that element :) Thanks, you solved (all) my problems :) Greetings, Nick Link to comment Share on other sites More sharing options...
emmanuelt Posted August 17, 2017 Share Posted August 17, 2017 nice question, straight to the point. Link to comment Share on other sites More sharing options...
carlos_nj23 Posted January 23, 2019 Share Posted January 23, 2019 Hi, where i can consult that sample report i have the same question but i implement the solutions and it does not work Link to comment Share on other sites More sharing options...
sreekanthvnu4 Posted January 2, 2020 Share Posted January 2, 2020 same Question I also have.I tried but it is not working .Please help me some one.thanks&Regards Link to comment Share on other sites More sharing options...
djohnson53 Posted January 2, 2020 Share Posted January 2, 2020 This is an old question and your question is hidden in this old answer. Ask a new question. Link to comment Share on other sites More sharing options...
mmaciel Posted January 16, 2021 Share Posted January 16, 2021 Could some give an example to achieve this? Where can I access to modified report mentioned here?Thanks in advance. 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