1. mahmoud mahmoud
  2. PowerBuilder
  3. Thursday, 12 January 2023 07:25 AM UTC

I have datawindow which contain 13 row which contain 2 page 

 

 page 1 contain 10 row

 

Page 2 contain 3 row

 

 

 

I need to create button to make user when he press button switch to page 1 and when he press again switch to page 2 which contain only 3 row

 

 

 

Can I do this

Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 12 January 2023 20:56 PM UTC
  2. PowerBuilder
  3. # 1

With 10 rows for page 1 and 3 rows for page 2 I would create a new DW (dw2), copy the DWO from your current dw (dw1), share the data between the two DWs, fileter each DW f=so dw1 shows only page 1 and dw2 shows only page 2, and display them either  side by side or dw1 on top of dw2.

If you MUST have a button to switch between them, then:
1. Add a computed field or a computed column to specify on which PAGE that the current row of data exists.
2. Default to page one on the RetrieveEnd event and filter the DWO to display page 1
3. ADd your button to the window that toggles between Page 1 and Page 2.
 - when the button is clicked, filter the DWO accordingly.

Comment
There are no comments made yet.
mahmoud mahmoud Accepted Answer Pending Moderation
  1. Thursday, 12 January 2023 08:02 AM UTC
  2. PowerBuilder
  3. # 2

yes i tried ScrollNextPage / ScrollPriorPage  but  it reach to last row at last of page 

i need all page seperatly page with its rows

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 12 January 2023 07:47 AM UTC
  2. PowerBuilder
  3. # 3

Hi.

Have you tried using ScrollNextPage / ScrollPriorPage methods? You need something different from what they do?

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.