Display a table in a panel



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Display a table in a panel

Postby Julie » Tue May 03, 2011 1:20 pm

Hi, I'm trying to improve the display of a table in a panel. I managed to display it using model. Now I would like to display the lines of different colors depending on the value of the table settings.
)BODY WINDOW(51,13) EXPAND(çç)                   
+                                                 
% ç ç MESSAGES A INSERER DANS L'EDITEUR ç ç       
*Info:µZ* Warn:µZ* Err:µZ* Sev:µZ* Unre:µZ* +(O/N)
%                                                 
% ç ç STAT. DE COMPILATION ç ç                   
¤STEP ¤Info ¤Warn ¤Err ¤Sev ¤Unre                 
)MODEL                                           
{Step  {NBI  {NBW  {NBE {NBS {NBU                 
)INIT                                             
.ZVARS = '(RETI RETW RETE RETS RETU)'             
&VARLIST = 'O,N'                                 
)END

I would know how to display the first line of the table in green if there is no error i.e. if nbe=nbs=nbu=0 and to display it in red if there are errors.
Is there a faster way than creating several panels and called them in the main function depending on parameters ?

Regards.
Julie
 
Posts: 21
Joined: Tue May 03, 2011 12:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Display a table in a panel

 

Re: Display a table in a panel

Postby ofer71 » Tue May 03, 2011 2:35 pm

I think you should read about variable model lines in the fine book.
User avatar
ofer71
 
Posts: 2
Joined: Sun Apr 17, 2011 9:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: Display a table in a panel

Postby Julie » Wed May 04, 2011 2:14 pm

Thanks but I don't find examples showing what I want to do.
So I try to use dynamic areas but I don't understand how to apply the colors in the main rexx. Is someone have examples ?
Julie
 
Posts: 21
Joined: Tue May 03, 2011 12:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Display a table in a panel

Postby enrico-sorichetti » Wed May 04, 2011 2:32 pm

I would know how to display the first line of the table in green if there is no error i.e. if nbe=nbs=nbu=0 and to display it in red if there are errors.


the rows relative to the table content will be displayed all with the same attribute
for a visual indication of an error You might simply change the color/content of one of the <static> fields
STAT. DE COMPILATION seems a good candidate to me !
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Display a table in a panel

Postby prino » Wed May 04, 2011 2:35 pm

Julie wrote:Thanks but I don't find examples showing what I want to do.
So I try to use dynamic areas but I don't understand how to apply the colors in the main rexx. Is someone have examples ?

Try this on the Advanced Users board.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: Display a table in a panel

Postby Julie » Wed May 04, 2011 6:15 pm

Thanks prino. I managed to display values like I wanted.
Julie
 
Posts: 21
Joined: Tue May 03, 2011 12:45 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post