Skip to content
Snippets Groups Projects
Commit 5a5ca6b7 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch '1086745_ReportDataError' into '2021.2.3'

1086745 ReportData.prototype.size added

See merge request xrm/basic!1554
parents 7e68a4fe f3e2afc1
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