How to I remove rows in the table.response before the grid is generated?
I read in an XML dataset that I don't have control over. But I only want the data that has a statuscode that matches "ep" and "uc".
So I was thinking:
table.response1 = table.response;
table.response = function(doc){
this.response1(doc); // first call the original one
var i, holdItem, rowCount = this.getCount();
// remove non "EP" and non "UC"
for (i=0; i<rowCount; i++) {
if (this.getData(7,i) <> "EP" || this.getData(7,i) <> "UC") {
this.delete();
}
}
}
I know the above is wrong, but I can't figure out how to do it. Thing is, I can't use the "setRowIndices" to mask them off because other filters would make still process them.
When I read in a dataset, how can I selete rows before the grid populates?
So I was thinking:
table.response1 = table.response;
table.response = function(doc){
this.response1(doc); // first call the original one
var i, holdItem, rowCount = this.getCount();
// remove non "EP" and non "UC"
for (i=0; i<rowCount; i++) {
if (this.getData(7,i) <> "EP" || this.getData(7,i) <> "UC") {
this.delete();
}
}
}
I know the above is wrong, but I can't figure out how to do it. Thing is, I can't use the "setRowIndices" to mask them off because other filters would make still process them.
When I read in a dataset, how can I selete rows before the grid populates?
Carl
June 8,