dprogrammer Posted May 11, 2023 Share Posted May 11, 2023 Hello everyone, Is it possible to force column headings to show only once for first row on each page? I have a column styled report and I am showing 4 rows in vertical format and column headings are repeating for all four rows hence creating space problems. Currennt sample out put:Page 1FirsName: John Smith First Name: Ebony Clyde First Name: Ekin Johove First Name: Dolat RamDept: HR Dept: HR Dept: FIN Dept: ITSalary: 40000 Salary: 38000 Salary: 50000 Salary: 20000DESIRED OUTPUT:Page 1FirsName: John Smith Ebony Clyde Ekin Johove Dolat RamDept: HR HR FIN ITSalary: 40000 38000 50000 20000 Link to comment Share on other sites More sharing options...
anish.rai Posted May 11, 2023 Share Posted May 11, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
Anuja Vilas Bhujbal Posted May 11, 2023 Share Posted May 11, 2023 Hello, Can you please share your report design to help us better understand it? Link to comment Share on other sites More sharing options...
dprogrammer Posted May 11, 2023 Author Share Posted May 11, 2023 Uploaded files. Hope this helps you understand my question. I changed data from my sample to different dataset but the layout is same. Link to comment Share on other sites More sharing options...
Solution olyncircle Posted May 12, 2023 Solution Share Posted May 12, 2023 You can use PRINT WHEN EXPRESSION using the variable COLUMN_NUMBER.Put this on the Static Text / Label$V{COLUMN_NUMBER} == 1[/code]This means that the label will only show on the first column. Link to comment Share on other sites More sharing options...
dprogrammer Posted May 15, 2023 Author Share Posted May 15, 2023 Thank you Olyncircle! That worked.I alwys thought column_number variable would store how many columns (fields) we have on the report. But looks like column count tells how many columns we are displaying vertically for each distinct row, which in my case was 4. 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