load data from CSV + headings
Great project! Keep up the good work ...
On loading data from a CSV, would be nice if 1st line
could be treated as the heading field, or having a way
to mark a set of entries as heading. Thx
November 17,
OK, I add this to the requirements list
Alex (ActiveWidgets)
November 17,
Better yet would be to load the data from an XML fragment & use the tags as the headers.
November 21,
XML GET and POST asynchronous data requests should be available very soon. It would allow extracting tag names and using them as headers. I'm also thinking of supporting SOAP - if I can find a nice way of avoiding complex manipulation with the message format.
Alex (ActiveWidgets)
November 21,
When do you expect to have XML support? It says Nov03 but with holidays coming up will you be able to keep that deadline?
November 24,
I should have something working later this week - which is still November :-)
Alex (ActiveWidgets)
November 24,
FYI - i was able to get closer to being able to use dynamic (unknown) data, without knowledge of columns... basically, I just make more than I will need, and hide the ones that look empty (based on the first column).
This is NOT bugproofed, nor even well thought out code - just me trying to make it work.
var table = new Active.Text.Table;
table.setURL("myDataGenerator.csv");
table.request();
var columns = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"];
table.getText=function (i, j) {
if (this._data[i][j]==undefined || this._data[i][j]=="") {
if (i==0) {
return "<style>.active-column-"+j+" { display:none; }</style>";
}
return "";
} else {
return this._data[i][j];
}
}
obj.setColumnProperty("texts", columns);
obj.setDataModel(table);
document.write(obj);
It's still not hiding the column headings... would be nice if it did... if anyone figures this out, let me know : alan_aw@zeroasterisk.com |
http://zeroasterisk.com
alan blount : www.zeroasterisk.com
September 30,