:: Forum >> Version 1 >>

handling text from table

More information on this topic is available in the documentation section: /active.text.table/gettext.html.

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
Monday, January 16, 2006



This topic is archived.

Back to /active.text.table/gettext.html

Documentation:

Forum search