How to use rowBGColorCalc

jcompagner:
everything is possible to color, even individual cells (in tableview)

Is it also supported in WebClient? I’m having two different behaviours, depending on the kind of client I’m using (in SmartClient the coloring of a column works, but in WebClient I can only change the color of the entire row.
The code I’m using is:
function rowBg()
{
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];
if (_form_name == “richieste_elenco”) {
switch (_state[_dataproviderid])//only the column must be colored
{
case “in attesa”:
return “#fffa84”;
break;
case “annullata”:
return “#a0ff28”;
break;
default:
break;
}

}
if (_state[“status”] == “completata”) // in this casa the entire row must be colored
{
return “#ecf0f0”;
}
if (_isSelected) {
return “#b5d5ff”;
} else {
if (_rowindex % 2 == 0) {
return “#ffffff”;
} else {
return “#ffffcc”;
}
}
}