diff --git a/process/Report_lib/process.js b/process/Report_lib/process.js index ebe7365ef7d16d8133747ce34bf3c95c6ecd9fc1..c5daa5318d1a1fe9392ba0295b1ca434db0c322d 100644 --- a/process/Report_lib/process.js +++ b/process/Report_lib/process.js @@ -47,7 +47,8 @@ ReportData.begin = function(pFieldNames) */ ReportData.prototype.add = function(pValues) { - for (let i = 0; i < pValues.length; i++) { + for (let i = 0; i < pValues.length; i++) + { if (this._reportFields.length == pValues[i].length) { this._reportValues.push(pValues[i]); @@ -81,6 +82,16 @@ ReportData.prototype.getReportValues = function() return this._reportValues; } +/** + * get the number of report fields + * + * @return {Number} length of report fields + */ +ReportData.prototype.size = function () +{ + return this._reportFields.length; +} + /** * create a Report * @param {String} pReportName