SFLLIN

49950 pts.
Tags:
AS/400
DSPF
SFLLIN
Using SFLLIN to create a two column display. Would like to tab down first column and then next column. col1-row1, col1-row2, col1-row3 etc. then col2-row1, col2-row2 ..instead of default col1-row1, col2,row1,col1-row2, col2-row2 Any idea how to control the tab key?

Software/Hardware used:
AS/400 DSPF

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: 5  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
  • TomLiotta
    I don't think there's a solution. I might assume it's because the arrow-down key already gives a line-by-line movement down the screen and because the DSPF logic would be little more complex to keep track of skipping record numbers, then wrapping back to the top, in alternating record sequence. . Only thing I know of is to build the screen essentially as an array and map your "subfile" records to it. . Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    I was hoping that I was having a senior moment (like usual). Of course, no one uses the arrow down key or the mouse. It's tab or enter and 'X' to select. Page Down to get to the next page. Great .. alternating record sequence. Load the array .. then load the page(s) from the array..great plan. That will be fun. It's a small set .. just a few pages. Thanks..Tom
    49,950 pointsBadges:
    report
  • aceofdelts
    I have a screen that does this with non-subfile data. Tab key advances thru "left side" fields and then "right side" fields (not actually columnar, more by proximity). The only unusual thing I found in the DDS (I didn't write this one) is a display size override DSPSIZ(27 132 *DS4) My guess is any field located beyond some value (80 ?) is treated like it's at the end. So in your spare time, you may want to try this with your subfile to see how it responds.
    1,930 pointsBadges:
    report
  • TomLiotta
    One minor side note... You can create, populate and read a subfile in your program code without ever actually displaying it on a screen. Sometimes this can work as an array or MODS. By declaring an array over DSPF record format fields and arranging DSPF fields in a desired order, it can be easier to populate the DSPF. Sometimes. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Great, not quite as sophicated as you described I just created a qualified array with the fields I needed for the display and necessary field control fields. Then I looped through the physical file and put the records in the desired locations in the array. With 12 rows and 2 columns on the display Record #1 went into the array(1) and record #2 into the array(13) Record #3 into (2) and #4 into (14) when I got to the second page it was array(25) and array(37) Once the array was populated I looped though it writing to the subfile. Which looked marvelous.
    49,950 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