3.0 beta 2

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
May 16,
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
May 17,
Thanks.
Jose
Jose
May 17,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.