:: Forum >>

CSV Table - How to change cell data in a script ?

I populate a CSV table from a http.request & table.request.
Can I change a table cell data not mapped to a grid ?

I tried changing cell(1,1) using table.setCellData('my data',1,1) &
table.setCellText('my data',1,1) but browser displays is not a function

dataCell data.
Syntax
var value = obj.getData();
obj.setData(value);

Thanks
Jose
Tuesday, May 16, 2006
var obj = new AW.UI.Grid;
obj.setCellModel(table);
....
try
var btn1 = new AW.UI.Button;
btn1.setId("btn1");
btn1.setControlText("Button");
document.write(btn1);

btn1.onClick = function(){
table._data[1][1]="xxx";
obj.getCellTemplate(1,1).refresh();
alert(table.getData(1,1));
}
TyD
Wednesday, May 17, 2006
Thanks.
Jose
Jose
Wednesday, May 17, 2006

This topic is archived.


Back to support forum

Forum search