Page 1 of 1

Subfile page down issue

Posted: Wed May 01, 2019 3:43 pm
by kulkabhijeet
We are designing a single page subfile and have a logic of setting the RRN of the first record of the page that needs to be displayed.
Out problem is that if we go to page 3, we need to press pagedown 4 times to go to program control, page 4 would need 5 times pagedown press and so on.
Unless we press page down those many time, the control does not return to the program at all. The subfile does nothing for initial key presses.

Re: Subfile page down issue

Posted: Thu May 02, 2019 11:27 am
by Scott Klement
What you're describing is an "expanding" subfile application. The idea behind an expanding subfile is that when the user reaches the end, your program is called and it adds another page. So when you page up and down it is handled by the OS, except for the case when someone pages beyond the end, at which time you "expand" it.

It is not a "single page" subfile. Single page is where you clear the subfile every time control goes to your application, and you start over, filling in only the one page you want the user to see. In that case, your program would get control every time the user pages up or down, and you'd have to load the particular page you want, the OS doesn't do the work for you.

Re: Subfile page down issue

Posted: Wed May 08, 2019 4:28 pm
by kulkabhijeet
Thanks Scott !!!
Fixed it !!!