1. Pascal Leblanc
  2. PowerBuilder
  3. Tuesday, 11 July 2017 15:46 PM UTC

When a datawindow is in preview mode, is there any way to scroll to a specific page or at least find the first row for a specific page? For example, I have a 200 pages report displayed and the user need to scroll to a specific page without using the scroll bar.

Thanks

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2017 05:50 AM UTC
  2. PowerBuilder
  3. # Permalink

Try this (to scroll to page 20):

ll_row = Find ("page() = 20", 1, RowCount())

ScrollToRow (ll_row)

Comment
  1. Pascal Leblanc
  2. Wednesday, 12 July 2017 15:38 PM UTC
Thank you, this is working perfectly

  1. Helpful
  1. alessandro feltrin
  2. Wednesday, 28 March 2018 06:35 AM UTC
GREAT!!

  1. Helpful
There are no comments made yet.
LUIS BECERRA Accepted Answer Pending Moderation
  1. Tuesday, 11 July 2017 17:26 PM UTC
  2. PowerBuilder
  3. # 1

 

You can calc the number of rows per page, with the function height() in the dw and the row.

Example:

li_dw_height =   dw.height

 

The height of the row :

 

li_row_height = integer(dw_maestro.Describe("row_name.Height"))

 

then you can calc the number of rows per page.

 

take in mind if you have header in your dw.

 

Scroll  with the function  scrolltorow(row)  to each page.

 

lbl.

 

 

 

 

 

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 11 July 2017 16:35 PM UTC
  2. PowerBuilder
  3. # 2

There are functions to scroll to first/last/next/prior page but not a specific page. If all pages have the same number of rows, you can use ScrollToRow to simulate a ScrollToPage function.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.