1. Yogeswari B
  2. PowerBuilder
  3. Tuesday, 3 October 2023 04:34 AM UTC

Is there any possibility to identify the user has viewed all pages until last(Multiple pages) in a datawindow(FreeForm)?

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 3 October 2023 09:15 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

Like Andreas already said, you can use the rowfocuschanged event.

To know if you are viewing the last page, you can do something like:

string ls_setting
ls_setting = dw1.Object.DataWindow.LastRowOnPage
// or: ls_setting = dw1.Describe("DataWindow.LastRowOnPage")

if dw1.rowcount() = long(ls_setting) then
  // you are viewing the last page of data
end if

This example will only prove that you have visited the last page. If you want to control that ALL pages have been visited, you have to some more coding.

regards.

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 3 October 2023 08:23 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

There is not any ready mechanism to achieve that. You can create your own. You may play with rowfocuschanged event or with functions like ScrollNextRow and ScrollNextPage and track down information.

What exactly are you trying to achieve?

Andreas.

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.