:: Forum >>

CSV Error Question

I'm trying to add code to insert/delete data from a Grid that I have loaded using a CSV file.

I am getting the following error("this._rows[...] is null or not an object") while trying to insert/delete or get the rowcount from the grid object(AW.GRID.Extended).

Anyone have any ideas if I'm missing something?

Below is a sample of my code:
=======================
Var table = new AW.CSV.Table;
table.setURL("file.csv");
table.request();
var columns = ["Ticker","Company Name", "Market Cap.","$Sales","Employees"];

var obj = new AW.Grid.Extended;
obj.setHeaderText(columns);
obj.setcolumnCount(columns.length);
obj.setCellModel(table);
document.write(obj);

function addGridRow(){
obj.addRow(obj.getRowCount() ++);}

function deleteGridRow(i){
obj.deleteRow(i);}

function getGridCount(){
obj.getRowCount();}

Thanks for your help in advance!
Gary
Thursday, August 10, 2006

This topic is archived.


Back to support forum

Forum search