Make sure you defined your function key using the CF04 keyword in the
display file and not CA04. CAxx indicates that no changed data is
transmitted back to the program. CFxx does transmit changed data.
HTH,
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
Young i Professionals
http://www.youngiprofessionals.com
THarteau@xxxxxxxxxxxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
07/01/2009 09:40 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Subfile with prompt item
Hi,
I will be the first to admit I am a novice with subfiles. I have
an existing maintenance program that uses EXFMT to display the screen. I
made one of the fields promptable. I put a '+' after the field and added
F4. This calls another program that displays a window the user can select
from. That is working fine. The problem is that if I fill in any other
fields then hit F4 to prompt, the other fields are blank. I put a
breakpoint immediately after the EXFMT and figured out it is because I
never hit the enter key. How can I retain the other entered values, but
still prompt?
Works correctly Works wrong
EXFMT EXFMT
Enter type field Enter Type
Press enter Prompt shipper
Type field = 'F' Type field = blank
199 C EXFMT SCR001
200 C*
201 C IF *INKD = *ON
202 C EXSR PmtCar
203 C ENDIF
<===================================================>
Terri Harteau
Felker Brothers Corporation
****************
"Do not follow where the path may lead. Go instead where there is no path
and leave a trail."
Ralph Waldo Emerson
****************
As an Amazon Associate we earn from qualifying purchases.