KB-48512: Changing a field’s background color according to its value in E3Browser.

Question:

How can I change the background color on an E3Browser row according to the value on the column? For example, when the column’s value is “T”, I want the color of the row to be red.

Solution:

A possible solution is to use the following script in E3Browser’s OnDrawRow event:

If GetColumnValue(1) = "T" Then
   RowBackColor = RGB(255,0,0)
End If

The number of the column with the value to be tested (in this case, “T”) must be set at GetColumnValue() function, which always starts as zero. When the application is executed, all rows with records from column 1 containing the letter “T” will be displayed in red. The same goes for new records being displayed at E3Browser.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *