View previous topic :: View next topic
|
Author |
Message |
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
I have created the following panel ..
Code: |
)ATTR
# TYPE(TEXT) INTENS(LOW) SKIP(ON) COLOR(WHITE)
$ TYPE(TEXT) INTENS(LOW) SKIP(ON) COLOR(YELLOW)
@ TYPE(TEXT) INTENS(LOW) SKIP(ON) COLOR(WHITE)
! TYPE(INPUT) PAD(' ') CAPS(ON) JUST(LEFT) COLOR(WHITE) HILITE(USCORE)
)BODY
$*********************************************************************
$* THIS PANEL IS A TEST PANEL
$*********************************************************************
$ NOTE - PLEASE ENTER ALL FIELDS IN UPPER CASE
# PLEASE ENTER YOUR TSO ZID @==>!Z +
# PLEASE ENTER PR NUMBER @==>!Z +
# PLEASE ENTER INITIAL OF REQUESTOR @==>!Z +
# ACTIVE@==>!Z+ #PURGE @==>!Z+
%+ PRESS% F3+TO EXIT. PRESS% ENTER%+TO CONTINUE.
%=======================================================================
)INIT
.ZVARS = '(USERID +
PRNUM +
INIIAL +
.CURSOR = USERID
)PROC
&PFVAR = .PFKEY
VER (&USERID,NB)
VER (&PRNUM,NB)
VER (&INIIAL,NB)
)END
|
I have the requirement to move the cursor to the next field automatically once the first field is complete. Like once userid is filled with 8 chars the cursor should move to field PRNUM. Currently if i type more than 8 chars in userid field it goes to non editing field. I have searched the forum but din't find the solution for it. Any example regarding this would be great help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at THIS recent thread. |
|
Back to top |
|
|
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
expat wrote: |
Take a look at THIS recent thread. |
Already checked this but didn't help |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
in the ispf manuals search for the auto skip attribute and use it to
define the filler fields...
as a general consideration
ISPF application are not power typing applications
the autoskip feature, for the end user is usually more an inconvenience than a productivity boost |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
follow on...
no need to ask the user to use the caps key
the attribute for the input fields makes ispf translate automagically to upper case the input
or it can be done inside the application |
|
Back to top |
|
|
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
As per ISPF Manual ..
SKIP(ON|OFF)
The SKIP keyword defines the autoskip attribute of the field. It is valid only for text or output (protected) fields (OFF is the default).
ON
Specifies that the cursor automatically skips the field. When a character is entered into the last character location of the preceding unprotected data field, ISPF positions the cursor at the first character location of the next unprotected field.
OFF
Specifies that the cursor does not automatically skip the field when the condition described for SKIP(ON) occurs.
When you are running in GUI mode, the SKIP keyword is ignored.
I am already using SKIP(ON) for the text fields but still then result is not as per expectation. Instead of moving to the next text field cursor stuck at protected field. |
|
Back to top |
|
|
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
Thanks all for you reply. I have got the solution
instead of
Code: |
# PLEASE ENTER YOUR TSO ZID @==>!Z + |
It should be
Code: |
# PLEASE ENTER YOUR TSO ZID @==>!Z +@ |
[/code] |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Bhim_s
thx for getting back with the solution. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
You do not need two attributes together. Assuming @ has the SKIP attribute, then this should work:
Code: |
# PLEASE ENTER YOUR TSO ZID @==>!Z @ |
|
|
Back to top |
|
|
|