|
|
| Author |
Message |
Pk
New User
Joined: 23 Jul 2005 Posts: 2
|
|
|
|
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 |
|
 |
References
|
Posted: Sat Jul 23, 2005 5:35 pm Post subject: Re: Help on Automatic refresh of panels. |
 |
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3002 Location: Charlotte,NC USA
|
|
|
|
Pk, for the sake of the rest of the users of this forum, I'm going to paste a copy of the response you received to this from the "other" forum, since I believe that it was the appropriate answer:
| 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.
|
|
|
| Back to top |
|
 |
|
|
|