F4 to open Selection List Window

pts.
Tags:
RPG
When the user presses F4 in a field for a list of values to select from, I open a Selection List Window. When I return from the window with the selected value for my prompted field all of the data entered into the other fields is gone. Because the display format is not read before the prompt is executed I cannot save these values to other fields and then return them to their display fields when I return from the window. Any sugestions would be greatly appriciated.

Answer Wiki

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

Unless I am mistaken the display format has to have been read, or else how does your program know to test for F4 being pressed, and then to execute the appropriate logic. I’ll take a quick stab here: in your display file, are you specifying that F4 is allowed with keyword CA04, or CF04? If using CA04, then field values are not returned to the program. If using CF04, they are returned the program, and should be available.

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
  • Rchevalier
    Make sure you have the overlay and assume keywords in your display file. I haven't done a window in a while but IIRC they go in the DDS for the main display. Frequently the assume keyword is defined in a separate 'dummy' format that is never displayed. Check out the archives at midrange.com. There should be lots of examples there. Rick
    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