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 

How to position cursor after scrolling

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


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Thu Nov 10, 2011 11:24 am    Post subject: How to position cursor after scrolling Reply with quote

On the ISPF panel, I defined 5 fields: ZCMD, FLD1, FLD2, FLD3, FLD4. FLD1 to FLD4 are within the )MODEL, and ZCMD is required for table display.
Code:

address 'ISPEXEC' "TBDISPL TABLE1 PANEL(PANEL1) CURSOR(FLD3) CSRROW(1) AUTOSEL(NO)"

When the table is dispayed, the cursor is postioned on the first row of FLD3 correctly. After pressing PF8 (Forward), the cursor is now positioned on the ZCmd field (ISPF handles scrolling logic internally). How can I make ISPF to postion to FLD3 after the scrolling?
Back to top
View user's profile Send private message
asr2
Beginner


Joined: 25 Jun 2011
Posts: 26
Topics: 4
Location: Germany

PostPosted: Thu Nov 17, 2011 4:09 am    Post subject: Reply with quote

Add .CURSOR = FLD3 to the panel definition.
Back to top
View user's profile Send private message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Thu Nov 17, 2011 9:23 am    Post subject: Reply with quote

asr2,

I added .CURSOR = FLD3 to )INIT, )REINIT and )PROC section and none of them works.
Back to top
View user's profile Send private message
Mickeyd
Beginner


Joined: 02 Jan 2003
Posts: 27
Topics: 0

PostPosted: Thu Nov 17, 2011 5:28 pm    Post subject: Reply with quote

as you can see I have used the cursor option in the Rexx and as you can see by the panel fields how the cursor is placed to the correct field..

The first Z variable is for the SELECT field..

Code:
"TBDISPL" DB2TABS "PANEL(ISPFDTAB) CURSOR(SELECT) AUTOSEL(NO)
                   ROWID(ACTROW)"

)BODY EXPAND(//) CMD(ZCMD) SMSG(SMSG)
#SMGDATE    +   / /           @DB2 Table Display     / /             #S
+                                                   {SMSG
+ Command%===>_ZCMD                                          +Scroll%==
+                                   @SSID:_S+
+
+                        Sel         Name         Number
)MODEL ROWS(SCAN)
+                        !Z+|Z                    |Z     +
)INIT
  .ZVARS  = '(SELECT DTBLNAM DTBLNUM)'

  &SELECT = '_'
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