Problem solve Get help with specific problems with your technologies, process and projects.

External pop-up window overlay solution

You have an interactive program - say PGMA - that calls PGMB. PGMB is supposed to pop up a window to overlay the screen from PGMA, but instead it completely removes that screen. You try the overlay keyword, but that does not help. Is there a solution? Yes.

Add a DUMMY record format to the display file used by PGMB. The dummy format should have the following record level keywords: KEEP, ASSUME. Since ASSUME needs at least one output field, code a blank output field. That is all you need to do. You DO NOT have to reference the DUMMY record in any of your programs - it just has to be there.

Go try it, and good luck.

A R WIN1
(your pop-up window as you want it)

A R DUMMY
A KEEP
A ASSUME
A 2 1' '


Dig Deeper on RPG iSeries programming

Join the conversation

3 comments

Send me notifications when other members comment.

Please create a username to comment.

I have an overlay that displays over a previous overlay.  Both are windows.  They work correctly, but when I return from the second overlay to the first, the background behind the first overlay goes black.  Any help?

Cancel
both of the popups have OVERLAY keyword, and a dummy record.  
Cancel
Hi, thanks for your help. This works perfectly fine if both of the DSPF's are in DS3 or DS4 Format. What if Programm A is DS3 and the Window (10 lines x 85 letters ) in Programm B is DS4? In this case, the Backgroudprogramm A disapears aswell. Do you have a solution for this aswell?
Cancel

-ADS BY GOOGLE

SearchDataCenter

Close