Hi davook,
Please consider our Basic StockList example; you could duplicate a field maybe because you want to format it in two different ways.
In the static grid definition the code will be something like this:
[HTML]
<td><div data-source="lightstreamer" data-field="ask" data-replica="ask-A">-</div></td>
<td><div data-source="lightstreamer" data-field="ask" data-replica="ask-B">-</div></td>
[/HTML]
In this way in the onVisualUpdate callback you can directly access the cells separately
var newValue = info.getChangedFieldValue(field);
if (newValue != null) {
info.setCellValue("ask", myValueFormattedFlavourA(newValue), "ask-A");
info.setCellValue("ask", myValueFormattedFlavourB(newValue), "ask-B");
}
Regards,
Giuseppe