View previous topic :: View next topic
|
Author |
Message |
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
I want to change the value of the screen variable that gets displayed in the panel from ISPF PANEL PROC section. Is there a way to do it?
E.g) Instead of using ISPF Message if i try to display my message in the screen area though a screen variable by changing its value in my ISPF PROC section, it is not getting displayed. The value that is passed from INIT section is retained. How can i change the screen text from Panel PROC section? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The PROC section is invoked when the user hits the ENTER key. This means that if you want to see your changes, you have to put your DISPLAY PANEL statement within a loop.
O. |
|
Back to top |
|
|
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
I have to loop the display statement with in my REXX code where i call my panel if i want to get my variable values updated. I cannot do this inside the ISPF panels. Correct my understanding if it is wrong.
PS: I tried displaying the panel at the end of PROC section. I am getting error. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The only method to "display" a panel from within another panel is through selection panel (aka "menu").
If you want to see updated values (after PROC processing), you will have to invoke the DISPLAY service again.
O. |
|
Back to top |
|
|
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
In my case I am displaying the panel from REXX. So i will loop the display panel in REXX to meet my requirement.
Many thanks for clarifying by doubts. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
By the way, you can use CONTROL DISPLAY LOCK to display the panel twice and process the PROC section, without the user noticing it.
O. |
|
Back to top |
|
|
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
I tried using this option. The PROC section gets called before user entering the values for the input fields. Can i say when we use "CONTROL DISPLAY LOCK" the proc section gets called before getting the input from the user? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Yes. CONTROL DISPLAY LOCK simply locks the user's keyboard, but ISPF panel processing performs as usual.
O. |
|
Back to top |
|
|
|