Page 1 of 1

Display a table in a panel

PostPosted: Tue May 03, 2011 1:20 pm
by Julie
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.

Re: Display a table in a panel

PostPosted: Tue May 03, 2011 2:35 pm
by ofer71
I think you should read about variable model lines in the fine book.

Re: Display a table in a panel

PostPosted: Wed May 04, 2011 2:14 pm
by Julie
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 ?

Re: Display a table in a panel

PostPosted: Wed May 04, 2011 2:32 pm
by enrico-sorichetti
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 !

Re: Display a table in a panel

PostPosted: Wed May 04, 2011 2:35 pm
by prino
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.

Re: Display a table in a panel

PostPosted: Wed May 04, 2011 6:15 pm
by Julie
Thanks prino. I managed to display values like I wanted.