cancel
Showing results for 
Search instead for 
Did you mean: 

How can i change the color of a field in a table depence of a value

Former Member
0 Kudos

Hi forum

Is this possible to change the color of a row in a specific field of a table depends of the value of this field,,, for example if the value is equal or greather than 1.

Thnks

Josué Cruz

Accepted Solutions (0)

Answers (5)

Answers (5)

OttoGold
Active Contributor
0 Kudos

Please share your solution, Otto

Former Member
0 Kudos

Answered by my self

Former Member
0 Kudos

Hi

kindly share ur knowledge.. How to set the color based on condition and also how to loop .

chintan_virani
Active Contributor
0 Kudos

Josue,

Please close the thread or else in case you have update please share it here.

Chintan

former_member189058
Active Contributor
0 Kudos

Hi,

Use the code given by Chintan in the exit event of the field that you need to check

Eg

if ($.rawValue == "1") then

(Chintan's code comes here)

endif

Regards,

Reema.

chintan_virani
Active Contributor
0 Kudos

Josue,

Yes this is possible if you use the fillColor method. It requires R,G,B value of color.


//Sample code which highlights cell2 in my table which has two rows.

frm1.Table1.Row2.Cell2.fillColor = "120,120,120";

// If you want highlight complete row.
frm1.Table1.Row2.fillColor = "120,120,120";

So now just apply an if loop which reads the input value as greater than 1 and use the code shown above.

Chintan