View previous topic :: View next topic
|
Author |
Message |
epicdave
New User
Joined: 11 Oct 2007 Posts: 20 Location: New York
|
|
|
|
I'm using REXX to parse source code from another source and an ISPF table to display the data to the user. The problem is, there are instances where I need certain rows of the table to have different attributes (color) than the rest of the table. Unfortunately, there doesn't seem to be an easy way to do this. I've got a single variable in the )MODEL section that displays the table, row by row.
I've been digging through the IBM pubs and they hint at things like DYNAMIC AREAS and SHADOW VARIABLES, but do a poor job of explaining how to use them. As the table gets build row-by-row, I'd really like to be able to somehow flag certain rows so ISPF knows to display them with different attributes.
Does anyone know how to do this? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
epicdave
New User
Joined: 11 Oct 2007 Posts: 20 Location: New York
|
|
|
|
I took a look at that post before, it doesn't apply as it has to do with changing the color of something from within the ISPF editor. I was looking more into setting a Dynamic Area but it looks like that is incompatible with ISPF Table Services.
So is there another way? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
So is there another way? |
Not that i'm aware of. . . |
|
Back to top |
|
|
russnesbitt
New User
Joined: 08 Oct 2008 Posts: 5 Location: washington state
|
|
|
|
I was wondering if you ever resolved this issue? I have the same requirement. I want to highlite three fields in that row in a table depending on data in one field in that table. Here is an example of what I tried. The problem is that it only works if the first row has the "p" in the status field.
Code: |
)MODEL CLEAR(OPT ZCMD)
@Z¬$Z ¬$Z ¬$Z ¬$z¬$z ¬$z ¬ $z ¬$z ¬$Z ¬$Z
)INIT
.ZVARS = '(ZSCBR, +
OPT, +
REL, +
VER, +
BUILD, +
STATUS, +
PRIM, +
PRIMDT, +
SECOND, +
SECDT, +
PDATE, +
CDATE)'
&ZCMD = ' '
IF (&STATUS = 'P')
.ATTR(REL) = 'INTENS(HIGH)'
.ATTR(VER) = 'INTENS(HIGH)'
.ATTR(BUILD) = 'INTENS(HIGH)'
ELSE
.ATTR(REL) = 'INTENS(LOW)'
.ATTR(VER) = 'INTENS(LOW)'
.ATTR(BUILD) = 'INTENS(LOW)'
)REINIT
&ZCMD = ' '
IF (&STATUS = 'P')
.ATTR(REL) = 'INTENS(HIGH)'
.ATTR(VER) = 'INTENS(HIGH)'
.ATTR(BUILD) = 'INTENS(HIGH)'
ELSE
.ATTR(REL) = 'INTENS(LOW)'
.ATTR(VER) = 'INTENS(LOW)'
.ATTR(BUILD) = 'INTENS(LOW)'
)PROC
)END
|
|
|
Back to top |
|
|
epicdave
New User
Joined: 11 Oct 2007 Posts: 20 Location: New York
|
|
|
|
russnesbitt,
as far as I know, there is no way to change the l/f attributes of data in an ISPF table dynamically, based on the contents of the table. At best, you can hilite a row depending on where the cursor is, but that's about it.
I've dug pretty deep into this issue with no success, so if you find a solution please do let me know :-) |
|
Back to top |
|
|
russnesbitt
New User
Joined: 08 Oct 2008 Posts: 5 Location: washington state
|
|
|
|
OK, thanks for your input. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I want to highlite three fields in that row in a table depending on data in one field in that table. |
I do not think it can be done with a table. Use dynamic area with shadow variables. |
|
Back to top |
|
|
|