Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Stefan S. on January 30, 2008, 02:28:45 pm



Title: color where condition in table
Post by: Stefan S. on January 30, 2008, 02:28:45 pm
Hello List,
In the mailing-archive I found a post about the color-condition in tables. I think that request is still open.

https://4js.com/fjs_forum/archive/msg00508.php

Has anybody an idea how to highlight the rows in a table table if an condition is true ??
I am able to manage this in a "normal array" but that looks not very fine.

Thanks in advance


kind regards
Stefan Serwe

 
L U T Z   Büro- und Datentechnik GmbH
Im Taubental 25, 41468 Neuss
Telefon : 02131 -34 13 -0   Telefax : 02131 -34 13 -88


Title: Re: color where condition in table
Post by: Bernard M. on January 31, 2008, 01:31:22 pm
Hello,

What do you mean by "normal array"?

Feature #Fz.1780 is not implemented yet, but since the condition in COLOR WHERE can only reference the field for which the attribute is set, I'm not sure this form attribute would really solve your problem.

You can use DIALOG.setCellAttributes() to set colors on the cells of a table.
Attached is a simple example on how you could do to set colors on whole rows: depending of the value of the fourth column the color of the entire row changes. To give you an overall idea...

Best regards,