Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dynamic Content in an ISPF Table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Dynamic Content in an ISPF Table
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

Site Director


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

PostPosted: Mon Dec 03, 2007 10:45 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Dec 04, 2007 1:06 am    Post subject:
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    Post subject: Reply to: Dynamic Content in an ISPF Table
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    Post subject:
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    Post subject: Reply to: Dynamic Content in an ISPF Table
Reply with quote

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

Senior Member


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

PostPosted: Thu Oct 09, 2008 9:40 pm    Post subject: Reply to: Dynamic Content in an ISPF Table
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us