Positioning in a grid with pagination

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
svi
Profound User
Posts: 20
Joined: Mon Feb 04, 2019 10:56 am
First Name: stephane
Last Name: villeminot
Company Name: alcyon france
Country: France
Contact:

Positioning in a grid with pagination

Post by svi »

Hi,

I have a grid loader by paging. Each time I load a new page the grid is positioned on the first page while I want to position myself on the last. How to force my page number, which property manages this ... Thanks in advance;)
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Positioning in a grid with pagination

Post by Scott Klement »

You may use the "subfile record number" property. (This is the same as the green-screen SFLRCDNBR DDS keyword.)
svi
Profound User
Posts: 20
Joined: Mon Feb 04, 2019 10:56 am
First Name: stephane
Last Name: villeminot
Company Name: alcyon france
Country: France
Contact:

Re: Positioning in a grid with pagination

Post by svi »

I use this property well. when I debug I load my first page the rank is at 11 - then I click on Next, it loads my second page my rank is at 22 but the display is positioned on my first page (if I redo Next the second page s 'displays well without reppassing by my pgm) it's just the positioning of my pages that is not good for me ....
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Positioning in a grid with pagination

Post by Scott Klement »

"my rank is at 22 but the display is positioned on my first page"

Sorry, I don't understand what you mean by "my rank" in the above sentence. Setting "subfile record number" will position the page to whichever record you list. So if row 12 is the first row on the 2nd page, you can set subfile record number to 12 and it will position to the second page.

If it helps, there's an example of a page-at-a-time subfile in the PUISAMPLES library that we provide with the product. The RPG code is PUISAMPLES/QRPGLESRC, GRID008R and the display is PUISAMPLES/QDDSSRC,GRID008D. Does that help?
svi
Profound User
Posts: 20
Joined: Mon Feb 04, 2019 10:56 am
First Name: stephane
Last Name: villeminot
Company Name: alcyon france
Country: France
Contact:

Re: Positioning in a grid with pagination

Post by svi »

Yes thanks ;)
Post Reply

Who is online

Users browsing this forum: sesame and 1 guest