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

Applying Parameters issue

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 26 Sep 2013, 02:53 PM
Hi,
I'm aware that this product is in Beta, so I figured I'd point out a bug I found.  When attempting to apply parameters to my report, the javascript fails and I get the following response:

Uncaught TypeError: Object #<Object> has no method 'applyParameters' parametersArea.js:509
(anonymous function) parametersArea.js:509
b.event.dispatch jquery-1.9.1.min.js:3
v.handle

It happens in this block here:

var $previewButton =
            $("<button class='k-button trv-parameters-area-preview-button'></button>")
                .html("Preview")
                .appendTo($footer)
                .on("click", function () {
                    controller.applyParameters();
                    /*
                    if ($validator.validate()) {
                        controller.applyParameters();
                    }
                    else {
                        alert("Invalid parameter values!");
                    }
                    */
                });


Also, and this is a side note, when the page loads, the report is received through the api fine, but it does not actually load the report into the report viewer until I hit the refresh icon. Should I manually call for a refresh?  I noticed the sample code provided on the announcement blog post does not require a manual refresh and just properly loads the report on page load.

Thanks

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 27 Sep 2013, 02:47 PM
Hello,

First of all, thank you for your interest in our Preview release of the HTML5 Report Viewer.

The reported issue occurs when there is one or more report parameters which are not set to be AutoRefresh = true. This prevents the parameters area to automatically trigger the report rendering and is the cause for the JavaScript error.

To fix the problem you can either set the AutoRefresh properties of all of the parameters to true or change controller.applyParameters(); only to applyParameters(); in order to avoid the JavaScript error.

If any other questions arise, do not hesitate to contact us again.

Regards,
Chavdar
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

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