anwarzamal25 Posted September 6, 2015 Share Posted September 6, 2015 I'm printing a report using ireport toolsConsider there is a table Student which having 4 columns Student-Id, Student-First Name, Student-Last Name, and Student-Age.In My Student Table Student-Last Name column not contain any values. i want to generate a report in such a way that if any column name not contains any values then that column name shifted to another column name, in place of previous column name.Student-Id Student-First Name Student-Last Name StudentAge 201 Vinay 24 202 Kishore 26 203 Komal 28So went I display my report, I want My Student-Age column name come in placed of Student-Last Name .Output:tudent-Id Student-First Name StudentAge 201 Vinay 24 202 Kishore 26 203 Komal 28How can I accomplish this?Please help.Thanks & Regards Link to comment Share on other sites More sharing options...
sanbez Posted September 9, 2015 Share Posted September 9, 2015 You mast use Table component (jr:table) and set for column of table (jr:column) Column Print When expression like: $F{myFIeldStudentLastName} != nullExample here: community.jaspersoft.com/wiki/how-suppress-table-column-report 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