mohammed.sardar Posted September 27, 2015 Share Posted September 27, 2015 Hi All,If I have 4 columns say COL1 COL2 COL3 COL4I want to hide the column COL3 based on a parameter passed from Java. But It should not create a space between the columns COL2 & COL4. I'm not sure what concept shall I use for this but would be very helpful if someone could help on this please. Ofcourse I do use the PrintWhenExpression from Properties Window in order to hide the column.But the thing is we need to avoid the extra space.COL1 | COL2 | | COL4 => In this if I hide the COL3 there is a space created between 2 & 4. I should omit the space. Hope I have requested the information as much as I can. If any one have idea then please share with me. Thanks.Kind RegardsMohammed Link to comment Share on other sites More sharing options...
asimkin Posted September 28, 2015 Share Posted September 28, 2015 Hi Mohammed,try using Table element and PrintWhenExpression for a column to achieve the requirements.Best regards,Andrew Link to comment Share on other sites More sharing options...
mohammed.sardar Posted September 28, 2015 Author Share Posted September 28, 2015 Hi AndrewThanks for your reply. Are ou asking me to use the Table Component from the Pallate on the details band.Do I have use the Print When Expression on the table component in order to acheive this ?Thanks Link to comment Share on other sites More sharing options...
mohammed.sardar Posted September 28, 2015 Author Share Posted September 28, 2015 Hi AndrewThanks for your reply. Are ou asking me to use the Table Component from the Pallate on the details band.Do I have use the Print When Expression on the table component in order to acheive this ?Thanks Link to comment Share on other sites More sharing options...
zh3ntil Posted September 28, 2015 Share Posted September 28, 2015 You shouldn't use table component on detail band in your case because jasperserver will print your table again and again for each row coming from result set. You can add it to summary band. In table, you can use print when expression for each column. Link to comment Share on other sites More sharing options...
mohammed.sardar Posted September 29, 2015 Author Share Posted September 29, 2015 Thanks. But in this case I have 4 sub-reports on the master report. I have the other three reports on the other details bands. Actually I have Detail 1 , Detail 2 , Detail 3 & Detail 4. If I use this report alone on the summay band will be printed first on the summay band and then the other detail bands will be printed. I'm changing now and let you know how it goes ... 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