|
Sharon, You will need to add an "Option" input capable field to your SFL. The user decides to load the first record in the subfile to field selection 6, they would enter a 6 on the option line. The can select additional SFL entries for the other field selections, specifying them by number. The program would then enter a Do loop with READC to return all the selected entries. As you READC, test the value of the OPT field to determine which field needs to receive that selection (a SELECT group works well for this). Your window will operate somewhat like the WRK*** commands that use the options field. If you need some pseudo-code to clarify, let me know..... Eric DeLong Sally Beauty Company MIS-Sr. Programmer/Analyst 940-898-7863 or ext. 1863 -----Original Message----- From: Sharon Rogers [mailto:sharon.rogers@nucorcoldfinishsc.com] Sent: Wednesday, June 20, 2001 1:36 PM To: RPG400-L@midrange.com Subject: RE: Read multiple records in subfile window & update PF The prompt window is not a separate program. It is a window subfile in the 1 program. I know you can point and shoot with 1 cursor position or you can select 1 subfile record from a window to update a PF and the main screen displayed behind that window. I have had a more difficult time locating examples where you are selecting more than 1 item from the window subfile and updating multiple items in the PF at the same time. -----Original Message----- From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On Behalf Of Bartell, Aaron L. (TC) Sent: Wednesday, June 20, 2001 12:53 PM To: 'RPG400-L@midrange.com' Subject: RE: Read multiple records in subfile window & update PF So all you need to do is pass six parms between the two programs (assuming the popup is a separate pgm) and when your get back to your main pgm move the six fields that your received from your popup to the appropriate fields in your main pgm. Does that make sense? or maybe I am not understanding what you are asking. Are you familiar with how to pass data back and forth between pgms? Aaron Bartell -----Original Message----- From: Sharon Rogers [mailto:sharon.rogers@nucorcoldfinishsc.com] Sent: Wednesday, June 20, 2001 10:01 AM To: RPG400-L@midrange.com Subject: RE: Read multiple records in subfile window & update PF Aaron, The 2nd part of your interpretation is perfect. -----Original Message----- From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On Behalf Of Bartell, Aaron L. (TC) Sent: Wednesday, June 20, 2001 10:39 AM To: 'RPG400-L@midrange.com' Subject: RE: Read multiple records in subfile window & update PF Do you want the pop up window to continue to be displayed after they hit enter and the screen in the background should be updated also? -or- after they have made their selections the pop-up window disappears and you pass back up to six values which will go to six different fields on the main screen? Aaron Bartell -----Original Message----- From: Sharon Rogers [mailto:sharon.rogers@nucorcoldfinishsc.com] Sent: Wednesday, June 20, 2001 9:18 AM To: RPG400-L@midrange.com Subject: Read multiple records in subfile window & update PF Good Morning! I have been working on a program where the user will use F4 to prompt a window subfile to pop up. I want her to be able to select subfile records using a 1,2,3,4,5,and 6. Each number will correspond with fields such as Feet1/Inch1, Feet2/Inch2, Feet3/Inch3, etc and populate fields located on the screen behind the window when she presses enter. The maximum number of selections will be 6. If I need to provide any additional information, please do not hesitate to ask. Any aid in programming for this would be greatly appreciated. Thanks, in advance, for your time! Sharon +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.