2 subfiles side by side

5 pts.
Tags:
RPG Language Support
Subfile
hi folks i try to create a DSPF as a window and with 2 subfiles side by side within So i create 2 several windows - once for every subfile, with all OVERLAY, INVITE, USRRSTDSP and WINDOW(..... *NOMSGLN *NORSTCSR), In RPG i wrote Write Window (Main) Write CTL01 Write CTL02 Read DspFile (the DisplayFile itself) But.... active is everytime the last window!!!! All other is protected Whats wrong?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Only one subfile can be active at a time. In your case it is the last one written to the screen. You need to set up some way to toggle between them.

Discuss This Question: 7  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
    Do your windows have any input-capable fields? Tom
    125,585 pointsBadges:
    report
  • Teandy
    Get a copy of a book by Kevin Vandever called "Subfiles in RPG IV". On page 180 is an example of a side by side subfile.
    5,860 pointsBadges:
    report
  • RonKoontz
    thats till not going to work. it needs to display both at the same time on the same window. I can get it to work full screen but going to a pop-up window it does not work. The user then will position the cursor on the subfile they want to scroll up and down on.
    1,780 pointsBadges:
    report
  • RonKoontz
    its not a side by side and that is where I got the example of an over an under. Try that example with a window subfile. i twill not work
    1,780 pointsBadges:
    report
  • RonKoontz
    at the moment the bottom one does have input cabable field. the other will not I just don;t see how it will work full screen and not with the window subfile
    1,780 pointsBadges:
    report
  • RonKoontz
    SORRY THIS WAS SUPPOSE TO GO TO MY POST...
    1,780 pointsBadges:
    report
  • Splat
    You can either switch from READ to CHAIN, or process by the format name instead of the file name. Depending on circumstances, I prefer chaining by relative record number because I don't need worry about modified data tags or whether the subfile is active. In any event, I specify the format name on the input operation (to me it makes it easier to know what I'm accessing).
    7,565 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