Font color on Table View condition

Hi
I need change the font color on Table view in a condition function.
I make this on the bgcolor by a calculation but I don´t change the color of the font.
Is that possible

Thanks

JuanMartin:
Is that possible

This is possible, either in a calculation or global method (globals method as from v4).

I used the function below to set the bgColor depending on the field ‘product_level’
The background color is only set for the columns where the dataprovider name is not ‘globals.btnNew’

As this is still in concept, the colors will look terrible, but hey… it’s just an example :wink:

function setBgCalc()
{
	var _rowindex = arguments[0];
	var _isSelected = arguments[1];
	var _field_type = arguments[2];
	var _dataproviderid = arguments[3];
	var _form_name = arguments[4];
	var _state = arguments[5];
	
	var $color = '#FFFFFF';
	
	if(_dataproviderid && _dataproviderid != 'globals.btnNew')
	{
		switch(_state.product_level)
		{
		case 2: $color = '#ACBDD7'; break;
		case 3: $color = '#ACD7D0'; break;
		case 4: $color = '#ADD7AC'; break;
		case 5: $color = '#D7D6AC'; break;
		case 6: $color = '#D7ACAC'; break;
		}
	}
	
	return $color;
}

Don’t forget to assign your calc/method to the bgColor form property.

Hope this helps!