View previous topic :: View next topic
|
Author |
Message |
LavanyaK
New User
Joined: 13 Jul 2007 Posts: 2 Location: Bangalore
|
|
|
|
Hi
Is there some way to re-display the original panel with the data content that was keyed in by the user after an ADDPOP and REMPOP commands?
ex:
ADDRESS ISPEXEC
DISPLAY PANEL(PANEL1)
IF RC = 0 THEN DO
ADDPOP ROW(10) COLUMN(10)
DISPLAY PANEL(PANEL2)
IF RC = 0 THEN DO
REMPOP ALL
END
ELSE
........
I would like to redisplay Panel1 with all the contents that were keyed into the input fields originally(just before the addpop) after i do a REMPOP
Thank you
Lavanya |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It's a long time since I have played with panels, but if your panel initialises the variables before display .............................
Maybe a second panel modelled on the first but without variable initialisation. |
|
Back to top |
|
|
LavanyaK
New User
Joined: 13 Jul 2007 Posts: 2 Location: Bangalore
|
|
|
|
I was trying to do it just like how it is done in ISPF panels. Is it possible that the underlying panel may be stored some where when the pop up panel comes up? |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
First of all do not check the RETURN (RC) after the ADDPOP
as you need to do the REMPOP always after doing the ADDPOP
and remove the ALL from the REMPOP.
"CONTROL DISPLAY SAVE"
ADDPOP ROW(10) COLUMN(10)
DISPLAY PANEL(PANEL2)
REMPOP
"CONTROL DISPLAY RESTORE" |
|
Back to top |
|
|
|