This is a migrated thread and some comments may be shown as answers.

Parameters Bug in ReportViewer-7.2.14.127.js

2 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 11 Feb 2014, 10:25 AM
There is an issue in telerik_ReportViewer_ParametersArea, function fill(newParameters) which stops reports with parameters working correctly.

The call to /api/reports/clients/{clientId}/parameters returned correctly, but the subsequent call to /api/reports/clients/{clientId}/instances was not passing the correct parameters in the report source, only a single "undefined" id with the value of the last parameter.

if (hasValue) {
   recentParameterValues[this.id] = this.value;
}


this.id is undefined, so the array ends up with a single item. The correct version is:
    
      
 
if (hasValue) {
   recentParameterValues[this.iD] = this.value;
}


The array now contains the correct parameter names and values.

2 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 11 Feb 2014, 10:48 AM
The same issue occurs in functions allParametersValidForAutoRefresh() and onParameterChanged()
0
Stef
Telerik team
answered on 13 Feb 2014, 03:41 PM
Hi Martin,

Please refer to my post in this forum thread: Reporting Html5 Viewer - POST parameter name undefined.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Stef
Telerik team
Share this question
or