RPGLE subfile programs

520 pts.
Tags:
RPGLE
Subfile
Does anyone know if it is possible to do a roll down, or Page Up, when the operator presses the ENTER key? My subfile program will Page Up & Page Down when pressing the Page Up/Page Down Key. But, when pressing the ENTER key, I would like the program to do a Page Up as well? Is this even possible? Thanks

Software/Hardware used:
Subfile Program

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 15  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    Are you loading a page at a time?
    51,355 pointsBadges:
    report
  • CharlieBrowne
    Define the ENTER key in the DSPF and assign an indication to it. Then you can check in your program if that indication is on. Just like you would do a function key.
    41,380 pointsBadges:
    report
  • Piano
    I am displaying the entire file all at once, as opposed to displaying 1 page at a time. So, I display up to 9999 records, all at once. I am using th key words Page Down & Page Up in my subfile. Where do I define the ENTER keyword ? Thanks !
    520 pointsBadges:
    report
  • philpl1jb
    Ah, that's a horse of a different color. When you press enter your program will need to: - detect the rrn of a row on the current screen - instruct the system to locate the cursor on a row with a rrn# that would be on the next page. - execute the format again.
    51,355 pointsBadges:
    report
  • philpl1jb
    One possibility for instruct the system to locate the cursor on a row with a rrn# that would be on the next page. would be SFLRCDNBR(CURSOR)
    51,355 pointsBadges:
    report
  • philpl1jb
    And to find the RRN of the record that your cursor is on you could use SFLCSRRRN (Subfile Cursor Relative Record Number)
    51,355 pointsBadges:
    report
  • philpl1jb
    and here is the display file manual http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzakc/rzakcmst.pdf
    51,355 pointsBadges:
    report
  • TomLiotta
    Does anyone know if it is possible to do a roll down, or Page Up, when the operator presses the ENTER key ? ... Is this even possible ?
    .
    It's easily possible, but it's hard to think of any good reason for doing it.
    .
    Since there is already a key on essentially every keyboard that is intended to provide the PageUp (and PageDown) function, having one screen that reacts different from every other screen seems an unnecessary confusion for users as well as for any developer who comes along next year or later and doesn't understand what the point is.
    .
    If this is for some special hand-held device with custom screen size or other specialty item, please describe the application environment. That way we can give the appropriate answer. It almost feels so specific that it'd be a possible interview question. A business purpose will help validate the request.
    .
    Tom
    125,585 pointsBadges:
    report
  • CharlieBrowne
    Why would you do all the DB I/O to read 9999 records before you display the data. It would be rare for a user to scroll through that many pages.
    41,380 pointsBadges:
    report
  • TomLiotta
    For a subfile with 20 rows per page, a user would only have to scroll through 499 screens to get through 9999 records. (Too bad there is no 'Sarcasm' font.) In general, I wouldn't consider putting anything over maybe 200 records in any subfile; and that's more than I'd like. Somewhere less than that number, I'd be thinking of an expanding subfile. . Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Phil provided a link to DDS documentation for display files. Did you find how to configure the {Enter} key? It's an easy keyword to use. . Tom
    125,585 pointsBadges:
    report
  • Piano
    This is all set now. I was able to configure the Enter Key. I normally write subfiles to display one page at a time, but, since the actual file itself only contains roughly 500 records, I decided to display the entire subfile at once. Little did I iknow that this would come back to bite me since the end users are accustomed to pressing ENTER and having the page roll forward. Thanks for all your assistance !
    520 pointsBadges:
    report
  • TomLiotta
    Fortunately, about all it takes is SFLENTER for the subfile. That makes it easy to enable it for some subfiles and not others. . Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Tom .. SFLENTER !!! Odd, I never realized that command existed, or it's the aging thinggy. http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzakc%2Frzakcmstdfsfntr.htm "Dere’s no guy livin’ dat knows Brooklyn t’roo an’ t’roo, because it’d take a guy a lifetime just to find his way aroun’ duh goddam town." Thomas Wolfe
    51,355 pointsBadges:
    report
  • TomLiotta
    Yeah, it's one of those archaic things that get forgotten because it's (almost) never used... for good reason. . Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following