I have the following setup in one of my modules:
1) Screen A opens and have a command button to open up a modal Screen B.
2) Screen B acts as a modification window for a memo field (From Screen A) where upon modification, the memo field will be saved to a variable m.det1. Upon pressing the Esc button, Screen B closes and the value of m.det1 will replace the value that was originally 'imported' from Screen A.
The question:
I want to automatically close Screen B (without pressing the Esc Key on the Keyboard) upon the clicking of a save command button on Screen B.
I have tried the following but to no avail:
1) RELEASE WINDOW WONTOP() or RELEASE WINDOW 'ScreenB' with the following error message: 'Window has not been defined' despite the window name has been defined earlier in the spr program.
2) I put KEYBOARD '{esc}' at the end of the valid code of the save command button but instead of exiting the screen I get an error message "INTERRUPTED" "Cancel Ignore"
Any suggestion would be appreciated. Thanks in advance.
1) Screen A opens and have a command button to open up a modal Screen B.
2) Screen B acts as a modification window for a memo field (From Screen A) where upon modification, the memo field will be saved to a variable m.det1. Upon pressing the Esc button, Screen B closes and the value of m.det1 will replace the value that was originally 'imported' from Screen A.
The question:
I want to automatically close Screen B (without pressing the Esc Key on the Keyboard) upon the clicking of a save command button on Screen B.
I have tried the following but to no avail:
1) RELEASE WINDOW WONTOP() or RELEASE WINDOW 'ScreenB' with the following error message: 'Window has not been defined' despite the window name has been defined earlier in the spr program.
2) I put KEYBOARD '{esc}' at the end of the valid code of the save command button but instead of exiting the screen I get an error message "INTERRUPTED" "Cancel Ignore"
Any suggestion would be appreciated. Thanks in advance.