3.2.0

handling text from table

I'm trying to get the text when it is converted from csv to the table.

<script>
var table = new Active.Text.Table;
table.setURL("../data/stats.csv");
table.request();
var columns = ["ID", "Name", "PA", "AB", "Runs"];

var obj = new Active.Controls.Grid;
obj.setId("grid1");
obj.setRowProperty("count", 5);
obj.setColumnProperty("texts", columns);
obj.setDataModel(table);
document.write(obj);
</script>

the first line of the csv: 0001,"Name",5,4,3

How do I retrieve the string "Name"???

inserting: str=obj.getText(2,1);
document.write(str)

results in error. Just like substituting obj by table. What's the correct syntax??

Tinus de Vries
January 16,

This topic is archived.

See also:


Back to support forum