Page 1 of 1
Reference for panel development
Posted:
Tue May 27, 2008 5:46 pm
by nikhilgalgate
Hi All,
Can anyone give me some reference for panel development.
Thanks
Re: Panel development
Posted:
Tue May 27, 2008 6:07 pm
by MrSpock
Re: Panel development
Posted:
Wed May 28, 2008 9:08 am
by nikhilgalgate
Hi,
I am successful in building panel. however can I know how is it possible to take input from panel and use it for further processing.
Thanks,
Re: Panel development
Posted:
Wed May 28, 2008 4:56 pm
by MrSpock
Any variables used in the panel definition are available in the shared variable pool, and are accessible by the application program. One advantage of using CLIST or REXX to call a panel definition is that both languages can directly access ISPF variables and can treat them as a native variable.
For example, if a panel has a field designated as input:
)ATTR
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
_ TYPE(INPUT) INTENS(HIGH) PAD('_')
# TYPE(OUTPUT) INTENS(LOW) PAD(' ')
)BODY
...
+Enter Your Name%=>_myname +
....
You can directly use the variable "myname" in your REXX exec:
/* REXX */
Do Forever
"ISPEXEC DISPLAY PANEL(MYPANEL)"
If rc <> 0 Then Leave
End
Say myname
Re: Panel development
Posted:
Mon Oct 13, 2008 9:42 pm
by chidams78
Hi Spock,
If we are getting the variables from the user through Panel, we should use
VPUT (MYNAME) SHARED
Then need to use VGET (MYNAME) SHARED in the REXX, right
Thanks
Chidam
Re: Panel development
Posted:
Tue Oct 14, 2008 5:45 pm
by expat
chidams78 wrote:Hi Spock,
If we are getting the variables from the user through Panel, we should use
VPUT (MYNAME) SHARED
Then need to use VGET (MYNAME) SHARED in the REXX, right
Thanks
Chidam
If the variable is entered via an ISPF panel invoked from the REXX the variable name will contain the value entered by the user with no need to VPUT/VGET anything.