Display File Field Value When Function Key Pressed

475 pts.
Tags:
AS/400
ILE
iSeries
RPG
I have a simple display file that shows a window with a single field for user to enter a value for a number. If the user enters a number and presses enter the program uses the value to send number to other programs. My problem however is if a user places a value in the field and presses F9 the program is suppose to start with the value entered and then generate the next available MOD-11 number. When the user presses F9 the program doesn't take the value entered as the value is still zero which is what it is as a default. How do I capture the value of the field when a function key is pressed and not the enter key? Thank you.

Answer Wiki

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

I just answered my own question.  I had the function key defined as CA09(09). When I changed it to CF09(09) it works.  Sometimes the obvious can be deceiving.  Thanks all who took the time to read this.

Discuss This Question: 1  Reply

 
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
  • BigKat
    just to add a bit of explanation for anyone searching for similar problems in the future. CA09 defines the function key so that it takes effect without accepting the input (or performing any validations/restrictions that were defined in the DSPF. CF09 defines the function key so that it takes effect after accepting the input (and passing all validations/restrictions that were defined in the DSPF.
    7,935 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