3.2.0

adding a column

I am using the CSV source and I have code that allows me to insert columns. However, when the insert is done, the value in each cell is 'undefined'. Is there an easy way to make it default to a blank cell instead? Should I just change the base code to display blank instead of 'undefined'? Or is there a better way (other than setting cellText for each cell to blank)?
Joel
February 1,
You can modify getData method in AW.CSV.Table.

Replace

return this._data[r][c];

with

return this._data[r][c] || "";


Alex (ActiveWidgets)
February 1,
Thanks Alex - that did the trick!
Joel
February 1,

This topic is archived.

See also:


Back to support forum