Skip to content
Snippets Groups Projects
Commit f3e2afc1 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

1086745 ReportData.prototype.size added

parent c188781a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment