View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Hi,
This is a panel of mine.
Code: |
)ATTR
_ TYPE(NEF) CAPS(ON)
£ TYPE(TEXT) COLOR(BLUE) INTENS(HIGH)
¢ TYPE(TEXT) COLOR(YELLOW) INTENS(HIGH)
+ TYPE(TEXT) COLOR(GREEN) INTENS(HIGH)
# TYPE(TEXT) COLOR(YELLOW) INTENS(HIGH) HILITE(REVERSE)
@ TYPE(OUTPUT) COLOR(YELLOW) INTENS(HIGH) HILITE(USCORE)
)body window(47,22)
£
+ +
+ Programmer Name: _Pnam +
+ EMP Number : _Snam +
+
¢ Press Enter to Proceed
£ £
)init
)proc
)end |
I want to validate the input fields from the Panel.
If the field is empty, I want throw a message in the Panel.
I don't want to throw the message as another panel using ZEDlMSG.
Somethin like this
Code: |
if(&Pnam EQ '') | (&Snam EQ '') |
Then what I have to use to display the message |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Whatever program (COBOL, REXX, etc.) is doing the panel DISPLAY will need to validate fields on the return and fill another field with a message and re-DISPLAY the panel.
This would be instead of using the VER function within the panel. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The VER statement will automatically return a meaningful error message if the verified field is blank and the VER statement says that it should not be. |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Thanks for the information. What if I have to throw custom messages on the panel? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
There is a sticky topic in the CLIST / REXX forum for reference materials.
Click on the ISPF link and all of the manuals you need will be displayed. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
What if I have to throw custom messages on the panel?
|
Please read the ISPF Dialog Developer's Guide and Reference. Read the section for the VER statement. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Just as you have an ISPPLIB for panels and an ISPSLIB for skeletons, you have an ISPMLIB for messages.
There is a chapter dedicated to "Defining messages" in the ISPF Dialog Developer's Guide and Reference. |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Thanks Marso for mentioning the heading, which will be of ease to me. |
|
Back to top |
|
|
|