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 

Help on Automatic refresh of 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
Pk
Beginner


Joined: 23 Jul 2005
Posts: 11
Topics: 4

PostPosted: Sat Jul 23, 2005 2:11 am    Post subject: Help on Automatic refresh of panels. Reply with quote

I have developed a chat utility in which I have a panel. If I type some text on the command line and press enter, the entered text would be written into a file, read back , populated in a ISPF table and displayed using TBDISPL. If I press Enter without any text, the rexx would just read the file, populate the table and display it. This holds good for both the users who are chatting.

I would like to make an enhancement wherein, if there s no user input for a prescribe amount of time(for 10secs), the panel should automatically refresh.

Please let me know if there is a way to do it.
Back to top
View user's profile Send private message Yahoo Messenger
semigeezer
Supermod


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

PostPosted: Sat Jul 23, 2005 3:49 pm    Post subject: Reply with quote

there really is not a way to do this directly from within ISPF. You could do it with an emulator macro, but that is another discussion and places unreasonable requirements on your users.

The reason is that when ISPF is waiting on screen input, it is waiting on a TGET request. So when you are waiting on user input, your id is suspended in a wait state. Now the obvious question becomes well can't I just attach a task and somehow get the attached task to post the ECB or whatever it takes to satisfy the TGET? Lets just say I've never known anyone to do it.

The other approach that might be suggested is to keep the screen in a CONTROL DISPLAY LOCK type of loop, but that suffers from similar problems. If you do that, the user can't enter data until the loop ends, and the only way to end a continuous loop like that is to use an attention interrupt like PA1, but then you need to code a STAX macro to intercept that and it gets very messy. At one point, think I saw an example that did that without causing a major disruption to the screen, but I've never gotten that to work (though I have made the STAX macro work 'well enough').
Back to top
View user's profile Send private message Visit poster's website
Pk
Beginner


Joined: 23 Jul 2005
Posts: 11
Topics: 4

PostPosted: Sun Jul 24, 2005 1:05 am    Post subject: Help on Automatic refresh of panels Reply with quote

Thanks Semigeezer.

I had actually tried the option of Control Display Lock but that didnt help my cause for the same reason that you had quoted that the user cannot type his input till the lock is released. So I thought if there would be a way while coding the panel itself to enable auto refresh.

Anyway , Thanks Semigeezer for the reply!
Back to top
View user's profile Send private message Yahoo Messenger
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