View previous topic :: View next topic
|
Author |
Message |
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi,
I am displaying table data on the panel. Panel displays last rows and then I need to do "Page up" to see all rows in ascending order.
Is their any command which displays from first row by default whenever I display panel with TBDISPL service. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
TBTOP perhaps
Does exactly what it says it does in the manual. |
|
Back to top |
|
|
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi Expat,
I have coded TBTOP statement just after TBOPEN.
Code: |
"ISPEXEC TBOPEN CDTAB1"
"ISPEXEC TBTOP CDTAB1" |
and after TBTOP, TBDISPL is coded.
But still it is not working |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How very strange. I can not recall ever having a problem with TBTOP.
Will try to have a play later if I get time |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you ran the REXX with TRACE to see what happens ? |
|
Back to top |
|
|
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi Expat,
I retested my code and found that I was following incorrect order which was - TBOPEN, TBTOP,TBADD, TBDISPL, TBCLOSE
But the correct order is TBOPEN, TBADD, TBTOP, TBDISPL, TBCLOSE
It is working fine for me.
Thanks Expat for help
But another query:
How can we check whether the table is open or not?
Please help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Thanks for letting us know the solution. C2KI error
TBQUERY will give a return code 12 if the table is not open.
Please look at the ISPF Services Guide manual to find these things out for yourself. |
|
Back to top |
|
|
|