Retain the values in the inital screen after coming back from the popup window

2505 pts.
Tags:
AS/400
DSPF
I have a screen which displays the account numbers. If i input some values to this account field and when i do an F5(without hitting enter) I can see the popup window, but after coming back from the pop up screen, my account numbers are gone. I have used CA05 for the popup. If I use CF05 and then take F5, the account numbers will get updated in my file(the code to do this is under When *in05 = *ON) which I don't want to happen unless user hits enter. Without using CF05, is there any way to retain the account numbers on the initial screen till user press enter?

Software/Hardware used:
AS400

Answer Wiki

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

When you CRTDSPF, use RSTDSP(*YES)

Discuss This Question: 6  Replies

 
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
  • RamvishakRamesh
    I have tried with RSTDSP(*YES), still it is not retaining the values after coming from the popup window. Please advice
    2,505 pointsBadges:
    report
  • RamvishakRamesh
    I thought this is quiet simple.. I tried assume keep and all.. but no luck so far
    2,505 pointsBadges:
    report
  • TomLiotta
    Then we need to see the display DDS and the programming that receives the F5-key and returns to the screen. We can't tell you what's happening without seeing the code. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    I'm very confused, again.  If the display issues CA05 .. it returns the original data to the program. I would use CF05 but then I would have the program doing very different things when F5 is pressed.    Did you use the same names for physical file fields and display fields?  
    51,365 pointsBadges:
    report
  • Splat
    You'll need to store the data entered until needed.  Pressing F5 on the display will return control to the program (if using CA05 the data entered will not be returned); if the program does not have the data stored, it won't be able to re-display it when the pop-up window is closed.
    7,665 pointsBadges:
    report
  • TomLiotta
    ...(the code to do this is under When *in05 = *ON)   That's the first part that I don't understand and that needs to be explained. It shouldn't matter if it's CA05 or CF05. The *IN05 indicator shouldn't have any connection to an update if it's intended for a pop-up window, and it probably shouldn't matter if CA or CF is used. If it does matter, then the program logic should be changed so that it doesn't.   What is the purpose of the pop-up window? If it supplies a value to fill in a field on the screen, then the program is outputting the screen again. RSTDSP() wouldn't matter in most programs if that's the case, but maybe the PUTOVR (Put with Explicit Override) keyword would help.   Tom
    125,585 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