MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cursor Positioning in ISPF Panels

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Ramkumar
Beginner


Joined: 04 Apr 2005
Posts: 19
Topics: 10

PostPosted: Mon Apr 04, 2005 7:10 am    Post subject: Cursor Positioning in ISPF Panels Reply with quote

I am invoking a panel through a REXX program. I want to change the cursor position each time I display the screen, according to the input from the user. Is it possible? I tried .COURSOR = variable-name but the problem is that it can be set only in the INIT section. It cannot be altered from the program. If you have any solution please let me know.



Thanks & regards,

Ramkumar N.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Apr 04, 2005 7:31 am    Post subject: Reply with quote

Ramkumar,

Did you try using USER_STATE? Check this link


http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPEDT03/3.3.97?DT=19990720125310

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Apr 04, 2005 8:30 am    Post subject: Reply with quote

You can assign .CURSOR in the )INIT and )REINIT sections and you can pass a field name on the DISPLAY call.
Back to top
View user's profile Send private message Visit poster's website
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Mon Apr 04, 2005 10:21 am    Post subject: Reply with quote

another option:

address ispexec "display panel(yourpanel) cursor("yourfield")"

HTH
Back to top
View user's profile Send private message
Ramkumar
Beginner


Joined: 04 Apr 2005
Posts: 19
Topics: 10

PostPosted: Mon Apr 04, 2005 10:30 pm    Post subject: Reply with quote

Hi,

I tried CURSOR with DISPLAY .It's working. Thanks a lot. But if I want to hilight that field what can i do?

Regards,
Ramkumar.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Tue Apr 05, 2005 1:00 am    Post subject: Reply with quote

For highlighting the field on which the cursor is positioned, just use .ATTR (.CURSOR) = 'HILITE(RED)'. This will cause the field to be displayed in red. Any other attributes associated with the field remain in effect.
By the way, that's all written in the manual, very clear and easy to understand, with handy examples and numerous explanations.
Back to top
View user's profile Send private message
Ramkumar
Beginner


Joined: 04 Apr 2005
Posts: 19
Topics: 10

PostPosted: Tue Apr 05, 2005 7:09 am    Post subject: Reply with quote

.ATTR(.CURSOR) option can be used if we are doing some verifications from the panel itself. But how can I hilight the field while I am placing the cursor using DISPLAY (panel) CURSOR(field).
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Apr 05, 2005 8:40 am    Post subject: Reply with quote

you can't. a 3270 display is a block mode device - you need an interaction with the host via an AID key (Enter, PF key, PA key) to get the host to update the screen. Moving the cursor around does not communicate with the host.
Back to top
View user's profile Send private message Visit poster's website
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Wed Apr 06, 2005 7:25 am    Post subject: Reply with quote

Ramkumar,
you're not right that .ATTR option can only be used when verifying within the panel. I assume that you code a loop processing in your program. Within the loop you display the panel and check some entry fields afterwards. Upon these checks you decide to either leave the loop or to repeat it while setting the corresponding value to the variable used in the CURSOR() parameter of the DISPLAY service. If this is the logic you have choosen, you could use the following statements in the INIT section of your panel to highlight that field, to which the cursor is positioned at each turn:
Code:

)INIT
&ACTCUR = .CURSOR
IF (&ACTCUR NE &Z)
   .ATTR(.CURSOR) = 'HILITE(REV) COLOR(RED)'

This will definitely work fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group