When they are equal say both 8 you can only put upto 8 records in the subfile
You code pagedonw and pageup in the control.
When the user presses pagedown you must clear the subfile and put the next 8 records into it.
You will also have to reload an earlier page when page-up is pressed
With the GT page the subfile can grow (up to the max of 9999 records)
You could either load all records initially (good for relatively short cases)
or load the first page and add one page each time the page down is pressed.
Generally in this case Page up does not need to be coded in the control or the rpg code.
The subfile contains the records from the first loaded so page-up's can be processed by the screen itself.
Load all initially is the simpliest code
Growing subfile needs page down code
One page subfile needs page-up and page-down code and is the most complex to code.
Phil
Hi Phil,
Thank u for ur information. I want to know what is load on demand subfile and why we want to use that?
////////////////
I suspect load-on-demand would be to load one page at a time -- that might be the growing subfile or the one page subfile.
The one page subfile is the most "efficient" in that it uses the least system memory but with page-up/page-down it is the most complex to code and if the user is likely to use page-up/page-down higher cycles.
The growing subfile will use more system memory if/when page down is pressed. But will use few cycles when page-up is pressed and is simplier code.
Phil
Last Wiki Answer Submitted: April 3, 2009 3:14 pm by philpl1jb44,190 pts.
All Answer Wiki Contributors: philpl1jb44,190 pts. ,
Ssaran205 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.