IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dynamic Content in an ISPF Table


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Mon Dec 03, 2007 9:58 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 03, 2007 10:45 pm
Reply with quote

Hello,

There is another current similar topic you might look at.

http://ibmmainframes.com/viewtopic.php?t=26379
Back to top
View user's profile Send private message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Mon Dec 03, 2007 11:33 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Dec 04, 2007 1:06 am
Reply with quote

Hello,

Quote:
So is there another way?

Not that i'm aware of. . .
Back to top
View user's profile Send private message
russnesbitt

New User


Joined: 08 Oct 2008
Posts: 5
Location: washington state

PostPosted: Thu Oct 09, 2008 7:05 pm
Reply with quote

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
View user's profile Send private message
epicdave

New User


Joined: 11 Oct 2007
Posts: 20
Location: New York

PostPosted: Thu Oct 09, 2008 7:30 pm
Reply with quote

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
View user's profile Send private message
russnesbitt

New User


Joined: 08 Oct 2008
Posts: 5
Location: washington state

PostPosted: Thu Oct 09, 2008 7:42 pm
Reply with quote

OK, thanks for your input. icon_sad.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Oct 09, 2008 9:40 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top