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;)
Positioning in a grid with pagination
-
- 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:
-
- 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
You may use the "subfile record number" property. (This is the same as the green-screen SFLRCDNBR DDS keyword.)
-
- 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
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 ....
-
- 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
"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?
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?
-
- 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
Yes thanks ;)
Who is online
Users browsing this forum: Google [Bot] and 5 guests