View previous topic :: View next topic |
Author |
Message |
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Fri Mar 21, 2003 7:16 am Post subject: Problem with Scroll Keys |
|
|
I have panel in which I display a Table (ISPF Tables). The Table contains 1 input field & 2 output fields.
whenever the user make any changes to the data in the input field and press enter, I will process it. Now, what actually happens is that, the user modifies one or more input field, then uses the Scroll keys to scroll down and then updates the data in the next list of fields. But, during this time (When he presses the SCroll key) the control comes back to the program and processes his changes which I don't want to do until he presses Enter key.
I tried to utilize the ZPFKEY feature but to no good, I'm unable to differentiate when the user presses ENTER key and when he presses the Scroll key, because even when the user presses Enter key, the ZPFKEY contains the last pressed Scroll key. I couldn't get any help from RC also. It either remains at 0 / 4.
How can i differentiate b/w the Enter key and any other PF key (Scroll key).
Please help me. |
|
Back to top |
|
|
Mike Beginner
Joined: 03 Dec 2002 Posts: 114 Topics: 0 Location: Sydney, Australia
|
Posted: Sun Mar 23, 2003 5:18 pm Post subject: |
|
|
Would checking .RESP help ?
E.g.
)PROC
........
&scroll = 'YES'
If (.RESP= ENTER)
&scroll = 'NO')
Not sure but perhaps ZPFnn ccould be used.
I would check this out and hopefully come up with soemthing, it's just that I'm really busy. _________________ Regards,
Mike. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sun Mar 23, 2003 8:39 pm Post subject: |
|
|
I avoid ISPF table display whenever possible, so I too don't have anything to try quickly, but how about ZVERB? Does it contain anything useful? You'll probably still need to process those rows, even if it is just setting an indicator in a hidden variable (column) in the table so that you know the field was selected. |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Sun Mar 23, 2003 10:46 pm Post subject: |
|
|
Mike,
I tried .RESP as you suggested. But of no use. B'cas even if I press Scroll keys, .RESP remains as ENTER. A Combination of .RESP & ZPFnn also didn't workout.
We need to try in some other way.
Thanks, |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Sun Mar 23, 2003 10:49 pm Post subject: |
|
|
Hey Semigeezer,
Quite a good catch. I tried to use ZVERB and its working fine... Whenever Enter key is pressed it remains Blank and whenever I use the scroll keys it displays UP / DOWN.
Thanks for your suggestion. I was breaking my head for this for a long time. I was looking for this feature to be incorporated in many of my rexx utilities.
Thanks a lot, |
|
Back to top |
|
|
|
|