ajith.devendra Posted January 2, 2019 Share Posted January 2, 2019 Hi Dear,I need to jump to the next page after 10 lines in detail band , I have added below expression on the break element which was dragged from the basic element Pallete . But still it dosn't break the page to next page .$V{REPORT_COUNT} =='10' rgdsA Link to comment Share on other sites More sharing options...
reportdev Posted January 5, 2019 Share Posted January 5, 2019 If your datasource is a resultset from a database, try using SQL to create a new column which resets at interval of 10 records ( you can use mod comparison and case statements). Based on this new column, create a group and select new page on group level settings. This method will be easiest when compared to variables in Jasper.$V{REPORT_COUNT} is a report level variable and it will not reset until you specify the reset type. Link to comment Share on other sites More sharing options...
ajith.devendra Posted January 13, 2019 Author Share Posted January 13, 2019 Dear Reportdev,Almost a week i struggled with this , finally found a field in the database table called sequence number (seqno), it strts with 1 ....n . I used this field and created a variable in jasper called "10Lines" in that i added an expression $F{seqno}<2 ? "1" : "2"Created a group using variable "10Lines" and checked on Start New Page in group band properties ..I can see the values of "10Lines" correctly prints ,but still it is not jumping to the next page .Appreciate your advice on this Rgds A Link to comment Share on other sites More sharing options...
ajith.devendra Posted January 15, 2019 Author Share Posted January 15, 2019 Hi Reportdev,I managed to get it work using the same method which you said , but the issue is , it will jump to the next page but it will print only the details band in the next page, other bands in the first page are not getting printed in the next page .rgdsAjith Link to comment Share on other sites More sharing options...
patelhp759 Posted February 15, 2019 Share Posted February 15, 2019 use this it might work $V{PAGE_COUNT} ==10 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