View previous topic :: View next topic
|
Author |
Message |
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
1. If I want to insert a table row, after the TBADD service, is there a way to have TBDISPL show the inserted row? I'd rather have that done automatically instead of coding for a REFRESH command to refresh the member list. Does a re-invoking of TBDISPL show the inserted row(s)?
2. Can an attribute character be included within the content of a row variable? I was thinking about changing the color or highlighting of a row when it's been selected. I know you can use a variable for the model definition, but can this somehow be used to change attributes from one row to another? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The TBDISPL should show the inserted row(s) OK |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I do not think you can include attribute characters in your table. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And going back to my previous post, and raking through the mists of memory, you may need to include a TBSORT to show the records in their correct position.
It's a long while since I've actually had an ISPF table application that required the user to actually input anything.
As for showing rows that have been selected, I usually have an extra blank field in the table which shows up in red and can be a simple one character field or the word SELECTED. Will post a bit of code on Monday when I'm back in the dungeon. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Thanks for your input.
Yeah, it looks like a TBDISPL and TBSORT have to be done to refresh the display with the inserted row in it's proper place.
This is the first major ISPF application I've worked on in about 10 years. I'm still a little rusty, but overall it's working pretty well. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|