obj.setCellText(
function(col,row) {
if (col != 1) { return; }
var v = obj.getCellData(col, row);
if (v == 5) {
return "Low";
} else if (v == 4) {
return "Medium";
} else if (v == 3) {
return "High";
} else if (v == 2) {
return "Urgent";
} else if (v == 1) {
return "Global";
} else {
return "";
}
},
1
);
obj.setCellText(function(col,row) {
alert("Hello World!");
if (col != 1) { return; }
var v = obj.getCellData(1, row);
if (v == 5) {
return "Low";
} else if (v == 4) {
return "Medium";
} else if (v == 3) {
return "High";
} else if (v == 2) {
return "Urgent";
} else if (v == 1) {
return "Global";
} else {
return "";
}
}, 1
);
This topic is archived.