Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

Triggering Page Up or Page Down?

Is it possible to trigger Page Up or Page Down in an RPG-program?  It's a program that uses subfiles.  Now the program goes to the end instead of waiting and displaying the first 20 records.   So now I want to manipulate the program to go back.  Can someone prevent me with some help and code?

Thnx!
0
Pingolin
Asked:
Pingolin
1 Solution
 
MurpheyApplication ConsultantCommented:
So what you say is that the subfile is displaying the last (20) records instead of the first 20...

If that is the only problem, you ave to do the folowing:

While writing the subfile you are using a field with the subfile record number!. After the writing of the subfile is complete, reset this number to 1. and the first 20 records are displayed.

I hope that tis is what you want.. If not please explain your question more detailed.

Regards and good luck.

0
 
PingolinAuthor Commented:
I'm sorry, but that didn't work out.  I already solved it myself by an other way without triggering.  Triggering was not a good solution because I got stuck by using different subroutines.

Next time better I hope.
0
 
P_S_PriceCommented:
Thats Naught cause Murphey did give you the answer (SFLRCDNBR)
0
 
MurpheyApplication ConsultantCommented:
Hi Pingolin,

of cause you got stucked in this way only the setting the recordnumber back to 1 is the only way to solve this.

Regards,
0
 
shalomcCTOCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Murphey2's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

ShalomC
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now