Colorizing repeated values

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Cat
User
Posts: 78

Colorizing repeated values

Post by Cat »

hello everyone

I have a multiple field separated by "," and I would like to know what possibility there is of colorizing the text repeated throughout the table for that field, example:

record 1 field: 1010, 2020, 3030
record 2 field 1010, 4050

The field to highlight would be 1010 because it is located in record 1 and record 2


arbei
User
Posts: 9384

Post by arbei »

You may Row_Rendered server event to check the field value (i.e. $this->MyField->DbValue) , save the value in array stored in global or session variable, then you split your value and compare the value with previously saved values, and add your HTML to colorize the repeated data.


Post Reply