0 pts.
 F4 to open Selection List Window
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.

Software/Hardware used:
ASKED: December 22, 2004  10:26 AM
UPDATED: December 23, 2004  10:30 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  December 22, 2004  10:40 am  by  RickMe   110 pts.
All Answer Wiki Contributors:  RickMe   110 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.