I have a problem with OVERLAY. I have a screen where a user enters a '?' on a particular field, a window will pop up. After selecting a value press enter and it comes back to the original display with the selected value displayed on field.Everything is working fine but parts of window is still shown on display. Can anybody suggest me a solution. I am ending the window program with a SETON LR.
Software/Hardware used:
ASKED:
February 7, 2012 7:14 AM
UPDATED:
March 17, 2012 1:46 AM
Pradeep,
Thank You for the reply.
OVERLAY is required in the screen because I am displaying the function keys and error messages in a different record format.
Yeah, I had that point in my mind. That is the reason I had suggested to Switch OFF the indicator while calling the WINDOW program.
Have you tried by Switching OFF the OVERLAY Indicator at the time of Writing WINDOW.
Pradeep.
I tried by switching off the indicator while calling the window program and again turned in ON while writing my display screen. But couldnt succeed.
The same window is working fine when called from another program. So I am not supposed to change anything in window program.
This might help http://www2.systeminetwork.com/resources/clubtech/TNT400/bo400ng/AS400Q0102.htm
It’s adding a dummy record in your primary dds with the ASSUME keyword.
Phil
Try compiling your screen with the following:
Enhanced display . . . . . . . . *YES *YES, *NO
Restore display . . . . . . . . . *YES *NO, *YES
Also, here is a small program I use to verify that a user truly wants to delete a record. Use it as a test on your system to see if you get the same results.
Here is the DDS
Here is the RPG.
********************************************************************** * SET COMPILER OPTIONS ********************************************************************** HNOMAIN HOPTION(*NODEBUGIO:*SRCSTMT) ********************************************************************** * PROGRAM NAME: AREYOUSURE * CREATION DATE: 08/12/08 * PURPOSE OF PROGRAM: DISPLAY RECORD DELETE VALIDATION SCREEN. ********************************************************************** * FILES USED BY PROGRAM. ********************************************************************** FAREUSUREFMCF E WORKSTN USROPN F INFDS(WSINFDS) ********************************************************************** * KEY PRESS DATA STRUCTURE. ********************************************************************** D WSINFDS DS D CMD_KEY 369 369A ********************************************************************** * PROTOTYPE FOR PROCEDURE ********************************************************************* D AREYOUSURE PR 1 ********************************************************************* * START PROCEDURE DEFINITION ********************************************************************* P AREYOUSURE B EXPORT D AREYOUSURE PI 1 ********************************************************************** * COMMAND KEY DEFINITIONS. ********************************************************************** D CANCEL_DELETE C Const(x'3C') ********************************************************************* * FIELD DEFINITIONS ********************************************************************* // ****************************************************************** // * START FREE FORM CALCS. // ****************************************************************** /FREE // ****************************************************************** // * SET SCREEN DEFAULTS. // * OPEN VERIFICATION WINDOW. // ****************************************************************** SCRYESNO = 'N'; OPEN AREUSUREFM; EXFMT WS1; IF CMD_KEY = CANCEL_DELETE; SCRYESNO = 'N'; ENDIF; CLOSE AREUSUREFM; // ****************************************************************** // * RETURN SCREEN VALUE TO CALLING PROGRAM. // ****************************************************************** *INLR = *ON; RETURN SCRYESNO; /END-FREE P AREYOUSURE E