One subfile has more records than the other.

0 pts.
Tags:
Development
Using "Subfiles in RPG IV" by Kevin Vandever, I am trying to enhance my programming skills. I have a program that uses multiple subfiles (side-by-side), and the second subfile has more records than the first. The first subfile shows the invoice information and the second subfile shows the distribution. There can be more than one distribution record to an invoice record. How can I control the cursor position to display the related data when toggling back and forth?
ASKED: May 26, 2005  3:41 PM
UPDATED: May 27, 2005  9:00 AM

Answer Wiki

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

For the cursor location you will need to have the RRN of the related record. You could hold the RRN of the first distribution record for each invoice record in a hidden field and hold the RRN of the related invoice record on each distribution record similarly.

Discuss This Question: 2  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
  • Helga52
    not sure how your building your subfile but if your reading the invoice file and writing the first subfile before you go to the distributions store the RRN of the invoice line you've just written to the first subfile and write it out as a hidden field to the second to link the RRNs of the subfiles . Using the cursor RRN of subfile 2 chain to retrieve the subfile record and then use the hidden RRN of subfile 1 to re position on return .
    0 pointsBadges:
    report
  • Freckles
    Thanks. I will try your suggestions.
    0 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