cell bug?
Hello,
When I try to get the value of a particular cell I get an error that says: Error: this._rows[r] has no properties
I don't think this is my doing but I could just be calling the wrong things. I know the grid is correct, and there is data because the first thing I do is display the grid. Before I get to the code, what I am doing here is uploading a CSV file, displaying the grid, then I am trying to pop up the data in 0,0. to see the data I am using the obj.getCellValue(0,0); function. Any ideas on how to fix this?
this gets the CSV file...
this opens the obj file, displays to screen then pops the data in 0,0
Help! thanks!
When I try to get the value of a particular cell I get an error that says: Error: this._rows[r] has no properties
I don't think this is my doing but I could just be calling the wrong things. I know the grid is correct, and there is data because the first thing I do is display the grid. Before I get to the code, what I am doing here is uploading a CSV file, displaying the grid, then I am trying to pop up the data in 0,0. to see the data I am using the obj.getCellValue(0,0); function. Any ideas on how to fix this?
this gets the CSV file...
function csvGenerate(gridData) {
/*
gridData - javascript object used to hold data needed by csvGenerate
gridData.headers - Holds all the header names
gridData.cols - Number of columns shown by the grid
gridData.css - cssAssociated with this particular grid
gridData.file - name of the CSV file
gridData.location - associated with the ID where the grid is supposed to be placed on the page
*/
var csvData = new AW.CSV.Table;
csvData.setProperty("URL", gridData.file);
csvData.request();
var obj = new AW.UI.Grid; //global grid object
obj.setColumnCount(gridData.cols);
obj.setCellModel(csvData);
obj.setId(gridData.css);
obj.setHeaderText(gridData.headers);
return obj;
}//csvGenerate()...
this opens the obj file, displays to screen then pops the data in 0,0
function validateData () {
var fileName = GLOBAL_UI_DIRECTORY+"test.txt";
alert (fileName);
var obj = csvGenerate(
{
headers: ["Last Name", "First Name", "Email Address", "Cell Number", "User Profile"],
cols: 5,
css: "myGrid",
file: fileName,
location: "gridBody"
}
);
var i = 0;
var test = $("gridBody");
test.innerHTML = obj;
alert (obj.getCellValue(0,0));
}
Help! thanks!
Joe C
May 8,