How to set cell value?
Hi,
I tried set value on a cell in a row (using setCellValue), but failed.
obj.onCellValidated = function(text, column, row){
var nCol=0;
var nRow=0;
var x;
for(var x=0; x< obj.getRowCount(); x++) {
nCol = nCol + obj.getCellValue(column, x);
}
for(var x=4; x< 15; x++) {
nRow = nRow + obj.getCellValue(x, row);
}
obj.setCellValue(4, row, nRow);
//obj.refresh();
alert(nCol);
alert(nRow);
}
Help please. :)
I tried set value on a cell in a row (using setCellValue), but failed.
obj.onCellValidated = function(text, column, row){
var nCol=0;
var nRow=0;
var x;
for(var x=0; x< obj.getRowCount(); x++) {
nCol = nCol + obj.getCellValue(column, x);
}
for(var x=4; x< 15; x++) {
nRow = nRow + obj.getCellValue(x, row);
}
obj.setCellValue(4, row, nRow);
//obj.refresh();
alert(nCol);
alert(nRow);
}
Help please. :)
lcs
June 6,