Hi
i use with lightstreamer version 4 the code below
to change the image to a user field #arrow

if (updateInfo.isValueChanged("p_last")) {

var val = updateInfo.getNewValue("p_dif");
if (val.indexOf("-") > -1) {
updateInfo.addField("#arrow",imgDown);
} else {
updateInfo.addField("#arrow",imgUp);
}

}

with version 5 Colosseo it is possible with StaticGrid to change image for a field up/down !?

and in version 5 the arrow field is without # is this important !!!??
because i have some calculated fields , like #value = quantity * last_price
i have to use DynaGrid or it is posible with StaticGrid !!??


with the code below the images with StaticGrid are not changing

//put arrow and handle change style
var pctChange = info.getChangedFieldValue("p_chng");

if (pctChange !== null) {
pctChange = formatDecimal(pctChange,2,true)+"%";
hotTxtCol = (pctChange.charAt(0) == '-') ? "#dd0000" : "#009900";
if (pctChange.indexOf("-") > -1) {
info.setCellValue("#arrow",imgDown);
info.setCellAttribute("#arrow",cold,cold,"backgrou ndColor");

info.setCellAttribute("p_chng","black",hotTxtCol," color");
info.setCellValue("p_chng",pctChange);
} else {
info.setCellValue("#arrow",imgUp);
info.setCellAttribute("#arrow",cold,cold,"backgrou ndColor");

info.setCellAttribute("p_chng","black",hotTxtCol," color");
info.setCellValue("p_chng","+"+pctChange);

}
info.setCellAttribute("p_chng","bold","bold","font Weight");
}