|
I think I got your problem. Based on your steps: 3. READC on subfile A after user makes a selection. Load the subfile fields to holding fields so that when you chain back to the file, you don't lose what they've keyed. 7. Chain to subfile A based on the RRN and then move the new GL account number to the appropriate field on subfileA and also move the saved fields to the subfile fields here as well. Operation 7 is causing you to lose what the user keyed in previously cause the subfile was changed but not updated. See if that works. Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 709-576-8132 rpower@xxxxxxxxxx http://www.stjohns.ca/ ___________________________________________________________________________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill "Douglas W. Palme" <dpalme@xxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 2006/01/12 01:28 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG Group" <rpg400-l@xxxxxxxxxxxx> cc Subject Still having a problem with windowed subfile I am still having a problem with overwriting subfile A after receiving a selection from subfile B (windowed subfile). Here are the steps I am going through: 1. Load subfile A wth one blank record, it has among others a numeric field for date, ref, GL account no, etc. 2. Enter into loop and EXFMT subfile A to await user action. 3. READC on subfile A after user makes a selection 4. IF user selects F04 (*IN04 coded as CF04) we EXSR LOADCA which will load subfile B. 5. Display subfile B and await user selection 6. Upon return execute a READC to check for any user selections. 7. Chain to subfile A based on the RRN and then move the new GL account number to the appropriate field on subfileA 8. update subfile A. 9. Control now drops all the way back to the main procedure which loops back to EXFMT subfile A. >From what I can tell in theory everything should work, but when it redisplays subfile A it blanks out all fields with the exception of the GL account number. Suggestions? Hints? Tell me to change jobs? :)
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.