Hi All,

i am getting trouble with my custom mssql collector. My collector
below;

Collector.prototype.initialize = function(){

this.PARSER.getOffsetData = function(input){
if (typeof input.RXMap != "undefined") {
return input.RXMap.col_safahatid;
}
}
conn.addParser(this.PARSER.getOffsetData);
return true;
}

when i debug saying always "input is undefined"

Connector.prototype.sendQuery = function(){
if (this.CONNECTION_STATUS == "NEED-QUERY") {
conn.send(instance.CONFIG.DBQuery);
}
return true;
};

Record.prototype.preParse = function(e){
if (this.CONNECTION_ERROR != null) {
return false;
}
if ((this.CONNECTION_METHOD == "DATABASE" && this.CONNECTION_MODE ==
"map")) {
for (var field in this.RXMap) {
this[field] = this.RXMap[field];
}
}
return true;
};

Every time "this.CONNECTION_ERROR" saying "NODATA" and it not resuming
to parse metot.

My sqlquery.base below

SELECT
TOP %d
SAFAHAT_ID as SAFAHATID,
SAFAHAT_ADI as SAFAHATADI,
SAFAHAT_ACIKLAMA as SAFAHATACIKLAMA
FROM TEST_SAFAHAT
WHERE SAFAHAT_ID > %s
ORDER BY SAFAHAT_ID


i am giving 20 to max row.

When i try open raw data trap always coming first 20 record and
looping. first 20 record coming again and again. What is my problem ?


--
ibasaran
------------------------------------------------------------------------
ibasaran's Profile: https://forums.netiq.com/member.php?userid=2826
View this thread: https://forums.netiq.com/showthread.php?t=45043