Jump to content
We've recently updated our Privacy Statement, available here ×

variable for current page number issue


tgs

Recommended Posts

I have created a variable $V{current_page_no} to get the value of the current page of the report. The properties for that variable are:

Class: java.lang.integer

Calculation: Nothing

Reset type: Page

Increment type: None

Var Expression: $V{PAGE_NUMBER}

Initial Value Expr.: new Integer(0)

If the report has only one page I get "1".

If items in the Detail band displayed on the second page I get "2".

If the items of the Detail band are on the first page and only the Summary band is displayed on the second, I get "1" on the first but "0" on the second page!??

Every idea is welcome how I could fix that.

 

Regards,

Thomas

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thank you for the link,

but this do not fix my problem. I'm struggeling to get the PAGE_NUMBER variable value at the evaluationTime = Report for a Print When Expression.

My variable (max_page_no) and/or (cur_page_no) does not always return the PAGE_NUMBER variable value by evaluationTime.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...